diff options
| author | Sebastian Kemper | 2018-02-03 12:33:24 +0000 |
|---|---|---|
| committer | Sebastian Kemper | 2018-02-03 12:33:27 +0000 |
| commit | 8006aa8ad3b7bdb5b00b19a1b8b0e1b0fd12807f (patch) | |
| tree | c089c82eb197fbbce265ecf23572ea63a5e13d23 | |
| parent | c46719867fdf9aadd0097f7b7f9eb30bb12db4f8 (diff) | |
| download | telephony-8006aa8ad3b7bdb5b00b19a1b8b0e1b0fd12807f.tar.gz | |
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>
| -rw-r--r-- | libs/libosip2/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/libosip2/Makefile b/libs/libosip2/Makefile index a4bb6cc..4440880 100644 --- a/libs/libosip2/Makefile +++ b/libs/libosip2/Makefile @@ -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 \ |