diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-01-27 22:18:28 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-01-27 22:18:28 +0100 |
commit | d38bc3d01923c1042dd3710b647515ac0432c58e (patch) | |
tree | d9f95f0410e85ada8343c1566ec90f31f9a03831 /mk | |
parent | dc464726a900d55ef3b34993d2cc36cab7edb49e (diff) |
Ă‚some native build fixes
Diffstat (limited to 'mk')
-rw-r--r-- | mk/vars.mk | 11 |
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 \ |