summaryrefslogtreecommitdiff
path: root/mk/vars.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/vars.mk')
-rw-r--r--mk/vars.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/mk/vars.mk b/mk/vars.mk
index 3a6591925..2151348b0 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -15,6 +15,9 @@ else
TARGET_DEBUGGING:= -fomit-frame-pointer
endif
TARGET_CFLAGS:= $(TARGET_OPTIMIZATION) $(TARGET_CFLAGS_ARCH) $(TARGET_DEBUGGING)
+ifneq ($(ADK_TARGET_ARCH_OPTIMIZATION),)
+TARGET_CFLAGS+= -march=$(ADK_TARGET_ARCH_OPTIMIZATION)
+endif
BASE_DIR:= $(TOPDIR)
DISTDIR?= ${BASE_DIR}/dl