aboutsummaryrefslogtreecommitdiff
path: root/package/linphone
diff options
context:
space:
mode:
authorGravatar Anton Kolesov <anton.kolesov@synopsys.com>2014-04-04 20:04:38 +0400
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-04-12 17:41:15 +0200
commitbaf637df7c0508e4fc1ee2482669abe79d0c475e (patch)
treebce445c1e472e808408a8a218252c22a9ea029cb /package/linphone
parent2fd2c71523c0bd992bac845d16300f771b70bc44 (diff)
downloadbuildroot-baf637df7c0508e4fc1ee2482669abe79d0c475e.tar.gz
buildroot-baf637df7c0508e4fc1ee2482669abe79d0c475e.tar.bz2
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/ Signed-off-by: Anton Kolesov <Anton.Kolesov@synopsys.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/linphone')
-rw-r--r--package/linphone/linphone.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/linphone/linphone.mk b/package/linphone/linphone.mk
index 91830aebc9..5e960a0cf9 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