libosip2: arc: Undefine __arc__ when building for ARC processors
PATCH 1/1 libosip2: arc: Undefine __arc__ when building for ARC processors
libosip2 appears to have support for the "ARC standard" (Advanced RISC Computing), which is unrelated to Synopsys DesignWare ARC processors. The check for this involves verifying the existence of the "__arc__" macro. Unfortunately, this macro is also present as a predefined built-in for the ARC processors, resulting into build failures.
--- package/libeXosip2/libeXosip2.mk | 4 ++++ package/libosip2/libosip2.mk | 4 ++++ 2 files changed, 8 insertions(+)
package/libeXosip2/libeXosip2.mk +4 -0
@@ -12,6 +12,10 @@ LIBEXOSIP2_LICENSE_FILES = COPYING LIBEXOSIP2_DEPENDENCIES = host-pkgconf libosip2 +ifeq ($(BR2_arc),y) +LIBEXOSIP2_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -U__arc__" +endif + ifeq ($(BR2_PACKAGE_OPENSSL),y) LIBEXOSIP2_DEPENDENCIES += openssl LIBEXOSIP2_CONF_OPT += --enable-openssl
package/libosip2/libosip2.mk +4 -0
@@ -10,6 +10,10 @@ LIBOSIP2_INSTALL_STAGING = YES LIBOSIP2_LICENSE = LGPLv2.1+ LIBOSIP2_LICENSE_FILES = COPYING +ifeq ($(BR2_arc),y) +LIBOSIP2_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -U__arc__" +endif + LIBOSIP2_CONF_OPT = \ --enable-mt=$(if $(BR2_TOOLCHAIN_HAS_THREADS),yes,no)
Signature · 1 line
1.7.9.5
PATCH 1/1 libosip2: arc: Undefine __arc__ when building for ARC processors
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Mischa" == Mischa Jonker <[email protected]> writes:
Mischa> libosip2 appears to have support for the "ARC standard" (Advanced Mischa> RISC Computing), which is unrelated to Synopsys DesignWare ARC Mischa> processors. The check for this involves verifying the existence of Mischa> the "__arc__" macro. Unfortunately, this macro is also present Mischa> as a predefined built-in for the ARC processors, resulting into Mischa> build failures.
Committed with a short comment in the .mk file about why we're doing this, thanks.
Signature · 1 line
Bye, Peter Korsgaard