Skip to contentSkip to conversation

linphone: arc: Undefine __arc__ when building for ARC processors

PATCH New Anton Kolesov 2 participants 2 messages Apr 4, 2014 – Apr 12, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linphone: arc: Undefine __arc__ when building for ARC processors

This patch is similar to 821a6d63. Libexosip2 defines symbol __arc__, which gets in contradiction with same symbol defined by the GCC for the Synopsys DesignWare ARC cores. Previous patch undefined __arc__ for libosip2 and libexosip2, however linphone includes headers from libexosip2, which causes build failure unless same patch is applied to it.

This patch fixes
http://autobuild.buildroot.net/results/0d2e19d40d6d0df4048e6ebae5f77022f89ca7cb/

---
 package/linphone/linphone.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/linphone/linphone.mk +5 -0
index 91830ae..5e960a0 100644
@@ -17,6 +17,11 @@ LINPHONE_DEPENDENCIES = host-pkgconf ortp mediastreamer libeXosip2 speex
 LINPHONE_LICENSE = GPLv2+
 LINPHONE_LICENSE_FILES = COPYING
 
+ifeq ($(BR2_arc),y)
+# toolchain __arc__ define conflicts with libosip2 source
+LINPHONE_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -U__arc__"
+endif
+
 ifeq ($(BR2_PACKAGE_LIBGTK2)$(BR2_PACKAGE_XORG7),yy)
 LINPHONE_CONF_OPT += --enable-gtk_ui
 LINPHONE_DEPENDENCIES += libgtk2
Signature · 1 line
1.8.4.1
#1 lore raw

PATCH 1/1 linphone: arc: Undefine __arc__ when building for ARC processors

Dear Anton Kolesov,

Quoted 6 lines · Anton Kolesov

This patch is similar to 821a6d63. Libexosip2 defines symbol __arc__, which gets in contradiction with same symbol defined by the GCC for the Synopsys DesignWare ARC cores. Previous patch undefined __arc__ for libosip2 and libexosip2, however linphone includes headers from libexosip2, which causes build failure unless same patch is applied to it.

Quoted 7 lines

This patch fixes
http://autobuild.buildroot.net/results/0d2e19d40d6d0df4048e6ebae5f77022f89ca7cb/

---
 package/linphone/linphone.mk | 5 +++++
 1 file changed, 5 insertions(+)

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com