summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-11-29 14:33:55 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-11-29 14:34:36 +0100
commitf1c2c3437fbe6b5a4f09e8bc6be919016c943825 (patch)
tree84703e7514bcf8592a4a41013860a05e23c2b9c0
parentd5381fb96d4911391b9bdbe1726f6bac1ffb1a09 (diff)
bfin: fix elf2flt CFLAGS/CXXFLAGS
-rw-r--r--mk/vars.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/mk/vars.mk b/mk/vars.mk
index 640ac40c9..fc1d1f88d 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -169,7 +169,8 @@ endif
ifeq ($(ADK_TARGET_ARCH_BFIN),y)
ifeq ($(ADK_TARGET_BINFMT_FLAT),y)
-TARGET_LDFLAGS+= -elf2flt
+TARGET_CFLAGS+= -Wl,-elf2flt
+TARGET_CXXFLAGS+= -Wl,-elf2flt
endif
ifeq ($(ADK_TARGET_BINFMT_FLAT_SEP_DATA),y)
TARGET_CFLAGS+= -msep-data