diff options
-rw-r--r-- | mk/vars.mk | 4 |
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) |