libosip2: fix build with ARC toolchain
ARC toolchain exports __arc__, which clashes with a symbol of the same name in libosip2. This commit undefines the toolchain symbol when building the library. The fix was found in buildroot repo. Thanks to whoever spotted this! Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
parent
c46719867f
commit
8006aa8ad3
1 changed files with 2 additions and 1 deletions
|
@ -37,7 +37,8 @@ define Package/libosip2/description
|
|||
GNU oSIP library, a Session Initiation Protocol (SIP) implementation.
|
||||
endef
|
||||
|
||||
TARGET_CFLAGS += $(FPIC)
|
||||
# toolchain __arc__ define conflicts with libosip2 source
|
||||
TARGET_CFLAGS += $(FPIC) $(if $(CONFIG_arc),-U__arc__)
|
||||
|
||||
CONFIGURE_ARGS += \
|
||||
--enable-shared \
|
||||
|
|
Loading…
Reference in a new issue