Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] linphone: arc: Undefine __arc__ when building for ARC processors
@ 2014-04-04 16:04 Anton Kolesov
  2014-04-12 15:41 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Anton Kolesov @ 2014-04-04 16:04 UTC (permalink / raw)
  To: buildroot

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/

Signed-off-by: Anton Kolesov <Anton.Kolesov@synopsys.com>
---
 package/linphone/linphone.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/linphone/linphone.mk b/package/linphone/linphone.mk
index 91830ae..5e960a0 100644
--- a/package/linphone/linphone.mk
+++ b/package/linphone/linphone.mk
@@ -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
-- 
1.8.4.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-12 15:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-04 16:04 [Buildroot] [PATCH] linphone: arc: Undefine __arc__ when building for ARC processors Anton Kolesov
2014-04-12 15:41 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox