]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - arch/i386/config.mk
Divides variable of linker flags to LDFLAGS-u-boot and LDFLAGS
[karo-tx-uboot.git] / arch / i386 / config.mk
index 8743f1a66320fcadef963da026d044dddf8f1fab..3fb97c1989bd62ae2040c7ace274a78f75b690a0 100644 (file)
@@ -35,5 +35,6 @@ PLATFORM_CPPFLAGS += $(call cc-option, -fno-stack-protector)
 PLATFORM_CPPFLAGS += $(call cc-option, -mpreferred-stack-boundary=2)
 PLATFORM_CPPFLAGS += -DCONFIG_I386 -D__I386__
 
-LDFLAGS += --cref --gc-sections
+LDFLAGS += --cref
+LDFLAGS_u-boot += --gc-sections
 PLATFORM_RELFLAGS += -ffunction-sections