cmake.mk: enable -Bsymbolic-functions by default for linking shared libs, slightly improves performance and compression
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 45508
This commit is contained in:
parent
d808d9be86
commit
d2ecd10f2f
1 changed files with 3 additions and 2 deletions
|
@ -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_FIND_ROOT_PATH:=$(STAGING_DIR);$(TOOLCHAIN_DIR)$(if $(CONFIG_EXTERNAL_TOOLCHAIN),;$(CONFIG_TOOLCHAIN_ROOT))
|
||||||
CMAKE_HOST_FIND_ROOT_PATH:=$(STAGING_DIR_HOST)
|
CMAKE_HOST_FIND_ROOT_PATH:=$(STAGING_DIR_HOST)
|
||||||
|
CMAKE_SHARED_LDFLAGS:=-Wl,-Bsymbolic-functions
|
||||||
|
|
||||||
define Build/Configure/Default
|
define Build/Configure/Default
|
||||||
(cd $(PKG_BUILD_DIR); \
|
(cd $(PKG_BUILD_DIR); \
|
||||||
|
@ -53,8 +54,8 @@ define Build/Configure/Default
|
||||||
-DCMAKE_ASM_COMPILER="$(CMAKE_C_COMPILER)" \
|
-DCMAKE_ASM_COMPILER="$(CMAKE_C_COMPILER)" \
|
||||||
-DCMAKE_ASM_COMPILER_ARG1="$(CMAKE_C_COMPILER_ARG1)" \
|
-DCMAKE_ASM_COMPILER_ARG1="$(CMAKE_C_COMPILER_ARG1)" \
|
||||||
-DCMAKE_EXE_LINKER_FLAGS:STRING="$(TARGET_LDFLAGS)" \
|
-DCMAKE_EXE_LINKER_FLAGS:STRING="$(TARGET_LDFLAGS)" \
|
||||||
-DCMAKE_MODULE_LINKER_FLAGS:STRING="$(TARGET_LDFLAGS)" \
|
-DCMAKE_MODULE_LINKER_FLAGS:STRING="$(TARGET_LDFLAGS) $(CMAKE_SHARED_LDFLAGS)" \
|
||||||
-DCMAKE_SHARED_LINKER_FLAGS:STRING="$(TARGET_LDFLAGS)" \
|
-DCMAKE_SHARED_LINKER_FLAGS:STRING="$(TARGET_LDFLAGS) $(CMAKE_SHARED_LDFLAGS)" \
|
||||||
-DCMAKE_AR="$(CMAKE_AR)" \
|
-DCMAKE_AR="$(CMAKE_AR)" \
|
||||||
-DCMAKE_NM="$(CMAKE_NM)" \
|
-DCMAKE_NM="$(CMAKE_NM)" \
|
||||||
-DCMAKE_RANLIB="$(CMAKE_RANLIB)" \
|
-DCMAKE_RANLIB="$(CMAKE_RANLIB)" \
|
||||||
|
|
Loading…
Reference in a new issue