diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-08-14 15:55:45 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-08-14 15:56:05 +0200 |
commit | bbf5aaee18aac559ffb379c2e25ed94b3c753d2f (patch) | |
tree | 158b4940df05e59733b609d4881865380458a63b /mk | |
parent | 09bc9a7f29e1f5642f8ef96ae78f6ee392053598 (diff) |
add elf2flt, use it for m68k-nommu. bootup in qemu still fails.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/vars.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mk/vars.mk b/mk/vars.mk index 14d677f40..a3dac0bed 100644 --- a/mk/vars.mk +++ b/mk/vars.mk @@ -93,6 +93,12 @@ TARGET_LDFLAGS:= -L$(STAGING_TARGET_DIR)/lib -L$(STAGING_TARGET_DIR)/usr/lib \ -Wl,-O1 -Wl,-rpath -Wl,/usr/lib \ -Wl,-rpath-link -Wl,${STAGING_TARGET_DIR}/usr/lib +ifeq ($(ADK_TARGET_BINFMT_FLAT),y) +TARGET_CFLAGS+= -Wl,-elf2flt +TARGET_CXXFLAGS+= -Wl,-elf2flt +TARGET_LDFLAGS+= -elf2flt +endif + ifeq ($(ADK_TARGET_LIB_MUSL),y) # use -static-libgcc by default only for musl TARGET_CFLAGS+= -static-libgcc |