add --as-needed

This commit is contained in:
veclavtalica 2025-02-05 02:51:52 +03:00
parent 0eadeb7e9d
commit 8110789b3a

View File

@ -195,6 +195,7 @@ function(give_options_without_warnings target)
$<$<CONFIG:Release>:${BUILD_FLAGS_RELEASE}>
$<$<CONFIG:Debug>:${BUILD_FLAGS_DEBUG}>
-Bsymbolic-functions
-Wl,--as-needed
$<$<BOOL:${LINUX}>:-Wl,--hash-style=gnu>)
get_target_property(target_type ${target} TYPE)