diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-02-12 15:38:35 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-02-12 15:38:35 +0100 |
commit | 0c0e05a071067aa433b3cf13bd982543d9ad7d17 (patch) | |
tree | ca4b1b44bffbfce26270787478d8b5f64cd0ce94 | |
parent | a5dde41515345e07add897c3b67dd137347bbd6c (diff) | |
parent | a3499b2d619de38125390f2a108b851d4d0d2023 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
-rw-r--r-- | mk/vars.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mk/vars.mk b/mk/vars.mk index ffd729ff4..014017ee8 100644 --- a/mk/vars.mk +++ b/mk/vars.mk @@ -85,6 +85,8 @@ TARGET_LDFLAGS:= -L$(STAGING_TARGET_DIR)/lib -L$(STAGING_TARGET_DIR)/usr/lib \ -Wl,-O2 -Wl,-rpath -Wl,/usr/lib \ -Wl,-rpath-link -Wl,${STAGING_TARGET_DIR}/usr/lib \ $(ADK_TARGET_ABI_LDFLAGS) $(TARGET_CFLAGS_ARCH) +# security optimization, see http://www.akkadia.org/drepper/dsohowto.pdf +TARGET_LDFLAGS+= -Wl,-z,relro,-z,now ifneq ($(ADK_NATIVE),) TARGET_CPPFLAGS:= |