diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-04-19 18:33:07 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-04-19 18:33:07 +0000 |
commit | 7184eecb5fae63c376ef14977ef70a42c6b3546b (patch) | |
tree | 2d135173aa85222efe133236dff4b93da5352390 /include | |
parent | e9ae6ee894faa4e062ba6459427ada5fecf9e29a (diff) | |
download | upstream-7184eecb5fae63c376ef14977ef70a42c6b3546b.tar.gz upstream-7184eecb5fae63c376ef14977ef70a42c6b3546b.tar.bz2 upstream-7184eecb5fae63c376ef14977ef70a42c6b3546b.zip |
cmake.mk: enable -Bsymbolic-functions by default for linking shared libs, slightly improves performance and compression
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45508 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r-- | include/cmake.mk | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/cmake.mk b/include/cmake.mk index f1db612986..4207a4dcee 100644 --- a/include/cmake.mk +++ b/include/cmake.mk @@ -33,6 +33,7 @@ CMAKE_RANLIB:=$(call cmake_tool,$(TARGET_RANLIB)) CMAKE_FIND_ROOT_PATH:=$(STAGING_DIR);$(TOOLCHAIN_DIR)$(if $(CONFIG_EXTERNAL_TOOLCHAIN),;$(CONFIG_TOOLCHAIN_ROOT)) CMAKE_HOST_FIND_ROOT_PATH:=$(STAGING_DIR_HOST) +CMAKE_SHARED_LDFLAGS:=-Wl,-Bsymbolic-functions define Build/Configure/Default (cd $(PKG_BUILD_DIR); \ @@ -53,8 +54,8 @@ define Build/Configure/Default -DCMAKE_ASM_COMPILER="$(CMAKE_C_COMPILER)" \ -DCMAKE_ASM_COMPILER_ARG1="$(CMAKE_C_COMPILER_ARG1)" \ -DCMAKE_EXE_LINKER_FLAGS:STRING="$(TARGET_LDFLAGS)" \ - -DCMAKE_MODULE_LINKER_FLAGS:STRING="$(TARGET_LDFLAGS)" \ - -DCMAKE_SHARED_LINKER_FLAGS:STRING="$(TARGET_LDFLAGS)" \ + -DCMAKE_MODULE_LINKER_FLAGS:STRING="$(TARGET_LDFLAGS) $(CMAKE_SHARED_LDFLAGS)" \ + -DCMAKE_SHARED_LINKER_FLAGS:STRING="$(TARGET_LDFLAGS) $(CMAKE_SHARED_LDFLAGS)" \ -DCMAKE_AR="$(CMAKE_AR)" \ -DCMAKE_NM="$(CMAKE_NM)" \ -DCMAKE_RANLIB="$(CMAKE_RANLIB)" \ |