diff --git a/CMakeLists.txt b/CMakeLists.txt index 19d00a2..1bb6c19 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -159,7 +159,8 @@ function(give_options_without_warnings target) -fdata-sections -ffunction-sections -funroll-loops - -fomit-frame-pointer) + -fomit-frame-pointer + -s) set(BUILD_FLAGS_DEBUG -O0 @@ -180,7 +181,9 @@ function(give_options_without_warnings target) # -Wl,--no-undefined # TODO: use later for implementing no-libc $<$:${BUILD_FLAGS_RELEASE}> $<$:${BUILD_FLAGS_DEBUG}> - $<$:-Wl,-rpath,$ORIGIN/>) + $<$:-Wl,-rpath,$ORIGIN/> + -Bsymbolic-functions + -Wl,--hash-style=gnu) target_compile_definitions(${target} PUBLIC ORGANIZATION_NAME="${ORGANIZATION_NAME}"