235c95af8f
When curl support is enabled in xerces, and a host curl is available on the system, it might try to use it, so this patch adds --with-curl= to the configure options to explicitly indicate where is the curl library to use. Should fix: http://autobuild.buildroot.org/results/c3c/c3c6be45d0f764fb931a46dbf1509ccf2916ecbf/ (We were not able to reproduce specifically this problem, but another similar problem, where curl was detected, but considered as non-working because of the compilation failure of a test program.) Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
30 lines
809 B
Makefile
30 lines
809 B
Makefile
################################################################################
|
|
#
|
|
# xerces
|
|
#
|
|
################################################################################
|
|
|
|
XERCES_VERSION = 3.1.1
|
|
XERCES_SOURCE = xerces-c-$(XERCES_VERSION).tar.gz
|
|
XERCES_SITE = http://archive.apache.org/dist/xerces/c/3/sources
|
|
XERCES_LICENSE = Apache-2.0
|
|
XERCES_LICENSE_FILES = LICENSE
|
|
XERCES_MAKE = $(MAKE1)
|
|
XERCES_INSTALL_STAGING = YES
|
|
XERCES_CONF_OPTS = --disable-threads \
|
|
--with-gnu-ld
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
|
XERCES_CONF_ENV += LIBS=-liconv
|
|
XERCES_DEPENDENCIES += libiconv
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
|
XERCES_CONF_OPTS += --enable-netaccessor-curl --with-curl=$(STAGING_DIR)/usr/lib
|
|
XERCES_DEPENDENCIES += libcurl
|
|
else
|
|
XERCES_CONF_OPTS += --disable-network
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|