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, 1 insertions, 2 deletions
diff --git a/mk/vars.mk b/mk/vars.mk
index e43a1f1f7..054fb588c 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -184,7 +184,6 @@ ifeq ($(ADK_TARGET_ARCH_H8300),y)
TARGET_CFLAGS+= -mh
TARGET_LDFLAGS+= -mh
ifeq ($(ADK_TARGET_BINFMT_FLAT),y)
-TARGET_LDFLAGS+= -Wl,-elf2flt
TARGET_CFLAGS+= -Wl,-elf2flt
TARGET_CXXFLAGS+= -Wl,-elf2flt
endif
@@ -269,7 +268,7 @@ TARGET_CFLAGS+= $(ADK_TARGET_CFLAGS_OPT)
TARGET_CXXFLAGS+= $(ADK_TARGET_CFLAGS_OPT)
# add compiler flags for debug information
-ifeq ($(ADK_BUILD_WITH_DEBUG),y)
+ifneq ($(ADK_DEBUG),)
TARGET_CFLAGS+= -g3
TARGET_CXXFLAGS+= -g3
endif