diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-02-20 09:56:39 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-02-20 09:56:39 +0100 |
commit | 7d3fa6ece82fd4f834a928fa764f8db5f8b34d7f (patch) | |
tree | 07f69997bdecf9dfb34ed4c6d83c8a47441bf266 /mk/vars.mk | |
parent | 63595c8c3f19a85d105a41da337aa2ca968f4098 (diff) | |
parent | 84af1b9633858c9ef5798c8c8793023044cd9fad (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'mk/vars.mk')
-rw-r--r-- | mk/vars.mk | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mk/vars.mk b/mk/vars.mk index 540d0e03b..4b0c4dbb9 100644 --- a/mk/vars.mk +++ b/mk/vars.mk @@ -87,15 +87,21 @@ TARGET_CFLAGS:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident $(ADK_TARGET_ABI_CFLAG TARGET_CFLAGS_LIBC:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident $(TARGET_OPTIMIZATION) else TARGET_CFLAGS:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident -fhonour-copts $(ADK_TARGET_ABI_CFLAGS) $(MODE_FLAGS) -TARGET_CFLAGS_LIBC:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident -fhonour-copts $(TARGET_OPTIMIZATION) +TARGET_CFLAGS_LIBC:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident -fhonour-copts $(TARGET_OPTIMIZATION) $(MODE_FLAGS) endif TARGET_CXXFLAGS:= $(TARGET_CFLAGS_ARCH) -fwrapv -fno-ident $(MODE_FLAGS) TARGET_LDFLAGS:= -L$(STAGING_TARGET_DIR)/lib -L$(STAGING_TARGET_DIR)/usr/lib \ -Wl,-O1 -Wl,-rpath -Wl,/usr/lib \ -Wl,-rpath-link -Wl,${STAGING_TARGET_DIR}/usr/lib \ - $(ADK_TARGET_ABI_LDFLAGS) $(TARGET_CFLAGS_ARCH) + $(ADK_TARGET_ABI_LDFLAGS) # security optimization, see http://www.akkadia.org/drepper/dsohowto.pdf TARGET_LDFLAGS+= -Wl,-z,relro,-z,now +# needed for musl ppc +ifeq ($(ADK_LINUX_PPC),y) +ifeq ($(ADK_TARGET_LIB_MUSL),y) +TARGET_LDFLAGS+= -Wl,--secure-plt +endif +endif ifneq ($(ADK_NATIVE),) TARGET_CPPFLAGS:= |