diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-02-25 14:09:55 -0600 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-02-25 14:09:55 -0600 |
commit | 0d5476f287f4f5c0a74c4f5b42025dfe0ce3b253 (patch) | |
tree | d6b9675e3e554586f8641927d48ca4595f952213 | |
parent | 48e41e6921d8817afe9bd6a79f476f34957fbc60 (diff) |
use elf2flt CFLAGS for ARM with BINFMT_FLAT
-rw-r--r-- | mk/vars.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/vars.mk b/mk/vars.mk index ba4a29924..563806b44 100644 --- a/mk/vars.mk +++ b/mk/vars.mk @@ -124,7 +124,6 @@ TARGET_CFLAGS+= -march=$(ADK_TARGET_GCC_ARCH) TARGET_CXXFLAGS+= -march=$(ADK_TARGET_GCC_ARCH) endif -<<<<<<< HEAD ifneq ($(ADK_TARGET_CPU_FLAGS),) TARGET_CFLAGS+= $(ADK_TARGET_CPU_FLAGS) TARGET_CXXFLAGS+= $(ADK_TARGET_CPU_FLAGS) @@ -146,6 +145,12 @@ TARGET_CXXFLAGS+= -m$(ADK_TARGET_FLOAT)-float endif endif +ifeq ($(ADK_TARGET_ARCH_ARM),y) +ifeq ($(ADK_TARGET_BINFMT_FLAT),y) +TARGET_CFLAGS+= -Wl,-elf2flt +endif +endif + ifeq ($(ADK_TARGET_ARCH_M68K),y) ifeq ($(ADK_TARGET_BINFMT_FLAT),y) TARGET_LDFLAGS+= -elf2flt |