summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2024-01-13 14:19:19 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2024-01-18 06:17:13 +0100
commite69f684dedb4a693e38fc8b948cdff8c7601674c (patch)
treef65f0118178c9e288f945d4bc813ae8a49dbce0d /mk
parent1e8ce0775190cbff163cf2d8e42bea16ba1669e7 (diff)
support nommu with ELF binaries
Diffstat (limited to 'mk')
-rw-r--r--mk/vars.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/vars.mk b/mk/vars.mk
index 86079d09a..87a622c25 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -212,11 +212,13 @@ TARGET_LDFLAGS+= -Wl,--secure-plt
endif
endif
+ifneq ($(ADK_TARGET_BINFMT_ELF)$(ADK_TARGET_WITH_MMU),y)
ifeq ($(ADK_TARGET_USE_STATIC_LIBS_ONLY)$(ADK_TARGET_USE_STATIC_AND_SHARED_LIBS),y)
TARGET_CFLAGS+= -static
TARGET_CXXFLAGS+= -static
TARGET_LDFLAGS+= -static
endif
+endif
ifneq ($(ADK_TARGET_USE_SSP),)
TARGET_CFLAGS+= -fstack-protector-all --param=ssp-buffer-size=4
@@ -287,8 +289,8 @@ endif
# workaround gcc bug for m68k/coldfire
ifeq ($(ADK_TARGET_CPU_CF),y)
-TARGET_CFLAGS+= -fno-dwarf2-cfi-asm
-TARGET_CXXFLAGS+= -fno-dwarf2-cfi-asm
+TARGET_CFLAGS+= -fno-dwarf2-cfi-asm -mxgot
+TARGET_CXXFLAGS+= -fno-dwarf2-cfi-asm -mxgot
endif
ifeq ($(ADK_TARGET_ARCH_ARM),y)