summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-11-23 20:28:22 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-11-23 20:28:44 +0100
commit26d0bebd88032de5e4b6f5b8cfaa8cb70def87c1 (patch)
tree8dcc4b97ca1d109e548d7e1e037f7d3027c1d284
parentcf0f1349801f74df6cf55b0fe77e3416d61a5baa (diff)
gcc git doesn't use text-section-literals
-rw-r--r--mk/vars.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/mk/vars.mk b/mk/vars.mk
index 28bef25ef..640ac40c9 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -255,10 +255,14 @@ ifeq ($(ADK_TARGET_ARCH_MICROBLAZE),y)
TARGET_CFLAGS+= -mxl-barrel-shift
TARGET_CXXFLAGS+= -mxl-barrel-shift
endif
+
ifeq ($(ADK_TARGET_ARCH_XTENSA),y)
+# newer gcc does not need this anymore
+ifeq ($(ADK_TOOLCHAIN_GCC_GIT),)
TARGET_CFLAGS+= -mlongcalls -mtext-section-literals
TARGET_CXXFLAGS+= -mlongcalls -mtext-section-literals
endif
+endif
# add configured compiler flags for optimization
TARGET_CFLAGS+= $(ADK_TARGET_CFLAGS_OPT)