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. [Peter: add short comment in .mk files as well] Signed-off-by: Mischa Jonker <mjonker@synopsys.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
31 lines
837 B
Makefile
31 lines
837 B
Makefile
################################################################################
|
|
#
|
|
# libexosip2
|
|
#
|
|
################################################################################
|
|
|
|
LIBEXOSIP2_VERSION = 3.6.0
|
|
LIBEXOSIP2_SITE = http://download.savannah.gnu.org/releases/exosip/
|
|
LIBEXOSIP2_INSTALL_STAGING = YES
|
|
LIBEXOSIP2_LICENSE = GPLv2+
|
|
LIBEXOSIP2_LICENSE_FILES = COPYING
|
|
|
|
LIBEXOSIP2_DEPENDENCIES = host-pkgconf libosip2
|
|
|
|
ifeq ($(BR2_arc),y)
|
|
# toolchain __arc__ define conflicts with libeXosip2 source
|
|
LIBEXOSIP2_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -U__arc__"
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
LIBEXOSIP2_DEPENDENCIES += openssl
|
|
LIBEXOSIP2_CONF_OPT += --enable-openssl
|
|
else
|
|
LIBEXOSIP2_CONF_OPT += --disable-openssl
|
|
endif
|
|
|
|
LIBEXOSIP2_CONF_OPT += \
|
|
--enable-mt=$(if $(BR2_TOOLCHAIN_HAS_THREADS),yes,no)
|
|
|
|
$(eval $(autotools-package))
|