3d0ade5542
Fixes: http://autobuild.buildroot.org/results/df4/df4bf247c92847024dff88ce58a5f47343f06258/ http://autobuild.buildroot.org/results/b33/b33f34dc23f7429928d7d0b1478e71d8e7fffed2/ http://autobuild.buildroot.org/results/cad/cad02570ec039511b9495e82d98439e9f0724b37/ And many more. A GCC bug is triggered when the compiler is run with an optimization level '-Os/-O2/-O3' for the Blackfin architecture: ``` error: unable to find a register to spill in class 'CCREGS' ``` Workaround this bug by forcing an optimization level of '-O1' when building libxslt for the Blackfin architecture. See GCC bug report: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77311 [Peter: add reference to autobuilders failures] Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# libxslt
|
|
#
|
|
################################################################################
|
|
|
|
LIBXSLT_VERSION = 1.1.29
|
|
LIBXSLT_SITE = ftp://xmlsoft.org/libxslt
|
|
LIBXSLT_INSTALL_STAGING = YES
|
|
LIBXSLT_LICENSE = MIT
|
|
LIBXSLT_LICENSE_FILES = COPYING
|
|
|
|
LIBXSLT_CONF_OPTS = \
|
|
--with-gnu-ld \
|
|
--without-debug \
|
|
--without-python \
|
|
--with-libxml-prefix=$(STAGING_DIR)/usr/ \
|
|
--with-libxml-libs-prefix=$(STAGING_DIR)/usr/lib
|
|
LIBXSLT_CONFIG_SCRIPTS = xslt-config
|
|
LIBXSLT_DEPENDENCIES = libxml2
|
|
|
|
# GCC bug with Os/O2/O3, PR77311
|
|
# error: unable to find a register to spill in class 'CCREGS'
|
|
ifeq ($(BR2_bfin),y)
|
|
LIBXSLT_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -O1"
|
|
endif
|
|
|
|
# If we have enabled libgcrypt then use it, else disable crypto support.
|
|
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
|
LIBXSLT_DEPENDENCIES += libgcrypt
|
|
LIBXSLT_CONF_ENV += LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
|
|
else
|
|
LIBXSLT_CONF_OPTS += --without-crypto
|
|
endif
|
|
|
|
HOST_LIBXSLT_CONF_OPTS = --without-debug --without-python --without-crypto
|
|
|
|
HOST_LIBXSLT_DEPENDENCIES = host-libxml2
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|