diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-08-10 21:37:48 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-08-11 00:02:03 +0200 |
commit | 9ed1eda5dbe2130cd938d7a3c1a8a30aa26fa9db (patch) | |
tree | d66d2e64e1254d757293b5134fd82e42ea8f7a9d /package/libxml2 | |
parent | 63ec0c71b54abe2d5468bd777e704412142cc2eb (diff) |
libxml2: fix m68k uclinux compile
The GCC manual suggest when getting:
relocation truncated to fit: R_68K_GOT16O foobar
to use -mxgot.
Fixes:
http://autobuild.buildroot.net/results/8a4e26bb1c0c64759e3914eced0a36baa0967f0b/
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libxml2')
-rw-r--r-- | package/libxml2/libxml2.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/package/libxml2/libxml2.mk b/package/libxml2/libxml2.mk index ed6f9af49..2a7153ad1 100644 --- a/package/libxml2/libxml2.mk +++ b/package/libxml2/libxml2.mk @@ -11,6 +11,11 @@ LIBXML2_LICENSE = MIT LIBXML2_LICENSE_FILES = COPYING LIBXML2_CONFIG_SCRIPTS = xml2-config +# relocation truncated to fit: R_68K_GOT16O +ifeq ($(BR2_m68k_cf),y) +LIBXML2_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -mxgot" +endif + LIBXML2_CONF_OPTS = --with-gnu-ld --without-python --without-debug HOST_LIBXML2_DEPENDENCIES = host-pkgconf |