cmake: add -fno-signed-zeros, -ffunction-sections
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-01-27 20:32:57 +01:00
parent d99ef986bf
commit 2b1349b256
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -209,6 +209,7 @@ endif(NOT CMAKE_CXX_FLAGS MATCHES "-fPIC")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIE")
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fcf-protection")
add_compile_options (-fdiagnostics-show-location=once)
add_compile_options(-fno-signed-zeros -ffunction-sections)
if(CMAKE_BUILD_TYPE STREQUAL Debug)
set(LDFLAGS "${LDFLAGS} -Wl,-Og,โ€“sort-common,โ€“as-needed,-z,now,-pic,-pie")