Skip to contentSkip to conversation

libxml2: fix m68k uclinux compile

PATCH New Waldemar Brodkorb 2 participants 2 messages Aug 10, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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/

---
 package/libxml2/libxml2.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/libxml2/libxml2.mk +5 -0
index ed6f9af..2a7153a 100644
@@ -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
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 libxml2: fix m68k uclinux compile

Hello,

Quoted 11 lines · Waldemar Brodkorb

The GCC manual suggest when getting:
relocation truncated to fit: R_68K_GOT16O foobar
to use -mxgot.

Fixes:
http://autobuild.buildroot.net/results/8a4e26bb1c0c64759e3914eced0a36baa0967f0b/

---
 package/libxml2/libxml2.mk | 5 +++++
 1 file changed, 5 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com