diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-05-23 21:06:05 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-05-23 21:06:05 +0200 |
commit | 82ae0cb11d56c46dd1aa14de98f94106f9dcddbc (patch) | |
tree | cb7accd8be9a25044aec5a68d6fde4d29cc384c8 | |
parent | 87a5f62011bf5e7466df84d37037453ca67aeb0a (diff) |
allow to use hash-style gnu for non-mips targets
-rw-r--r-- | mk/vars.mk | 5 | ||||
-rw-r--r-- | target/config/Config.in.toolchain | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/mk/vars.mk b/mk/vars.mk index 12b26084d..72a50e9ba 100644 --- a/mk/vars.mk +++ b/mk/vars.mk @@ -125,6 +125,11 @@ TARGET_CXXFLAGS+= -flto TARGET_LDFLAGS+= -flto endif +# performance optimization, see http://www.akkadia.org/drepper/dsohowto.pdf +ifneq ($(ADK_TARGET_USE_GNU_HASHSTYLE),) +TARGET_LDFLAGS+= -Wl,--hash-style=gnu +endif + ifeq ($(ADK_LINUX_MICROBLAZE),y) TARGET_CFLAGS+= -mxl-barrel-shift TARGET_CXX_FLAGS+= -mxl-barrel-shift diff --git a/target/config/Config.in.toolchain b/target/config/Config.in.toolchain index 26232e63a..68c683686 100644 --- a/target/config/Config.in.toolchain +++ b/target/config/Config.in.toolchain @@ -73,6 +73,15 @@ config ADK_TARGET_USE_GOLD depends on !ADK_LINUX_MIPS default n +config ADK_TARGET_USE_GNU_HASHSTYLE + prompt "Use GNU hashstyle for all packages" + boolean + depends on !ADK_LINUX_MIPS + default n + help + Performance optimization for applications with lot of shared library + dependencies. See http://www.akkadia.org/drepper/dsohowto.pdf + config ADK_DEBUG bool "Compile applications with debug support by default" default n |