Skip to contentSkip to conversation

cairo: fix m68k uclinux compile

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cairo: 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/31a488316fe3c14729a6dd9259205f8530684cab/
http://autobuild.buildroot.net/results/dc6b899e3e502d65b2cf2f6d922a4f63857edf82/

---
 package/cairo/cairo.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/cairo/cairo.mk +5 -0
index b798995..d7e370a 100644
@@ -12,6 +12,11 @@ CAIRO_SITE = http://cairographics.org/releases
 CAIRO_INSTALL_STAGING = YES
 CAIRO_AUTORECONF = YES
 
+# relocation truncated to fit: R_68K_GOT16O
+ifeq ($(BR2_m68k_cf),y)
+CAIRO_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -mxgot"
+endif
+
 ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
 CAIRO_CONF_ENV += CPPFLAGS="$(TARGET_CPPFLAGS) -DCAIRO_NO_MUTEX=1"
 endif
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 cairo: fix m68k uclinux compile

Hello,

Quoted 4 lines · Waldemar Brodkorb

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

Quoted 8 lines

Fixes:
http://autobuild.buildroot.net/results/31a488316fe3c14729a6dd9259205f8530684cab/
http://autobuild.buildroot.net/results/dc6b899e3e502d65b2cf2f6d922a4f63857edf82/

---
 package/cairo/cairo.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