Merge git://git.denx.de/u-boot into u-boot
[oweals/u-boot.git] / cpu / mcf5445x / config.mk
index a85d0f9fc50da1a9e74cf656808ac09c50c691c8..67efa07af75b80641f2c7ae0024682853d0a20ac 100644 (file)
 #
 
 PLATFORM_RELFLAGS += -ffixed-d7 -msep-data
-ifeq ($(findstring 4.2,$(shell $(CROSS_COMPILE)gcc --version)),4.2)
+ifeq ($(findstring 4.2,$(shell $(CC) --version)),4.2)
 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