Skip to contentSkip to conversation

gnuplot: 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 gnuplot: 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/d1e030c42f43f49575f36ecc82e9dd9018ca4f73/

---
 package/gnuplot/gnuplot.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/gnuplot/gnuplot.mk +5 -0
index 4408ece..a9e1204 100644
@@ -25,6 +25,11 @@ GNUPLOT_CONF_OPTS = \
 	--without-latex \
 	--without-cairo
 
+# relocation truncated to fit: R_68K_GOT16O
+ifeq ($(BR2_m68k_cf),y)
+GNUPLOT_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -mxgot"
+endif
+
 ifeq ($(BR2_PACKAGE_GD)$(BR2_PACKAGE_LIBPNG),yy)
 GNUPLOT_CONF_OPTS += --with-gd
 GNUPLOT_DEPENDENCIES += gd
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 gnuplot: 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/d1e030c42f43f49575f36ecc82e9dd9018ca4f73/

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