summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk')
-rw-r--r--mk/vars.mk11
1 files changed, 6 insertions, 5 deletions
diff --git a/mk/vars.mk b/mk/vars.mk
index 300e41aae..39c35e52a 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -57,6 +57,12 @@ TARGET_LDFLAGS:= -Wl,-O2 -Wl,-rpath -Wl,/usr/lib \
-Wl,-rpath-link -Wl,${STAGING_TARGET_DIR}/usr/lib \
-L${STAGING_TARGET_DIR}/lib -L${STAGING_TARGET_DIR}/usr/lib
+ifneq ($(ADK_NATIVE),)
+TARGET_CPPFLAGS:=
+TARGET_CFLAGS:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident -fhonour-copts
+TARGET_LDFLAGS:=
+endif
+
ifneq ($(ADK_STATIC),)
TARGET_CFLAGS+= -static
TARGET_CXXFLAGS+= -static
@@ -81,11 +87,6 @@ else
TARGET_CFLAGS+= -fomit-frame-pointer $(TARGET_OPTIMIZATION)
endif
-ifneq ($(ADK_NATIVE),)
-TARGET_CPPFLAGS:=
-TARGET_CFLAGS:= $(TARGET_OPTIMIZATION) $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident -fhonour-copts
-TARGET_LDFLAGS:=
-endif
# A nifty macro to make testing gcc features easier (from uClibc project)
check_gcc=$(shell \