]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ColdFire: Add -got=single param for new linux v4e toolchains
authorTsiChung Liew <Tsi-Chung.Liew@freescale.com>
Thu, 19 Jun 2008 00:05:23 +0000 (19:05 -0500)
committerJohn Rigby <jrigby@freescale.com>
Fri, 11 Jul 2008 16:45:57 +0000 (10:45 -0600)
Signed-off-by: Kurt Mahan <kmahan@freescale.com>
cpu/mcf5445x/config.mk
cpu/mcf547x_8x/config.mk

index 88433f2f6d6e04494d46b662e528ea5a1547a049..67efa07af75b80641f2c7ae0024682853d0a20ac 100644 (file)
@@ -29,3 +29,9 @@ PLATFORM_CPPFLAGS += -mcpu=54455 -fPIC
 else
 PLATFORM_CPPFLAGS += -m5407 -fPIC
 endif
+
+ifneq (,$(findstring -linux-,$(shell $(CC) --version)))
+ifneq (,$(findstring GOT,$(shell $(LD) --help)))
+PLATFORM_LDFLAGS += --got=single
+endif
+endif
index e5f4385dd35f7ea23099a97f3f9bcd7d33b0140e..567b28192640bbf1b16823b36bb35b53a5363e52 100644 (file)
@@ -29,3 +29,9 @@ PLATFORM_CPPFLAGS += -mcpu=5485 -fPIC
 else
 PLATFORM_CPPFLAGS += -m5407 -fPIC
 endif
+
+ifneq (,$(findstring -linux-,$(shell $(CC) --version)))
+ifneq (,$(findstring GOT,$(shell $(LD) --help)))
+PLATFORM_LDFLAGS += --got=single
+endif
+endif