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 88433f2..67efa07 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 e5f4385..567b281 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