CMakeLists.txt: strip by default on release, use -Bsymbolic-functions and --hash-style=gnu for optimized symbol resoltuion
This commit is contained in:
parent
93aa8ff2b4
commit
c5c0fa4e70
@ -159,7 +159,8 @@ function(give_options_without_warnings target)
|
|||||||
-fdata-sections
|
-fdata-sections
|
||||||
-ffunction-sections
|
-ffunction-sections
|
||||||
-funroll-loops
|
-funroll-loops
|
||||||
-fomit-frame-pointer)
|
-fomit-frame-pointer
|
||||||
|
-s)
|
||||||
|
|
||||||
set(BUILD_FLAGS_DEBUG
|
set(BUILD_FLAGS_DEBUG
|
||||||
-O0
|
-O0
|
||||||
@ -180,7 +181,9 @@ function(give_options_without_warnings target)
|
|||||||
# -Wl,--no-undefined # TODO: use later for implementing no-libc
|
# -Wl,--no-undefined # TODO: use later for implementing no-libc
|
||||||
$<$<CONFIG:Release>:${BUILD_FLAGS_RELEASE}>
|
$<$<CONFIG:Release>:${BUILD_FLAGS_RELEASE}>
|
||||||
$<$<CONFIG:Debug>:${BUILD_FLAGS_DEBUG}>
|
$<$<CONFIG:Debug>:${BUILD_FLAGS_DEBUG}>
|
||||||
$<$<BOOL:${LINUX}>:-Wl,-rpath,$ORIGIN/>)
|
$<$<BOOL:${LINUX}>:-Wl,-rpath,$ORIGIN/>
|
||||||
|
-Bsymbolic-functions
|
||||||
|
-Wl,--hash-style=gnu)
|
||||||
|
|
||||||
target_compile_definitions(${target} PUBLIC
|
target_compile_definitions(${target} PUBLIC
|
||||||
ORGANIZATION_NAME="${ORGANIZATION_NAME}"
|
ORGANIZATION_NAME="${ORGANIZATION_NAME}"
|
||||||
|
Loading…
Reference in New Issue
Block a user