From 82ae0cb11d56c46dd1aa14de98f94106f9dcddbc Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 23 May 2014 21:06:05 +0200 Subject: allow to use hash-style gnu for non-mips targets --- mk/vars.mk | 5 +++++ target/config/Config.in.toolchain | 9 +++++++++ 2 files changed, 14 insertions(+) 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 -- cgit v1.2.3