cmake: add -fno-signed-zeros, -ffunction-sections
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d99ef986bf
commit
2b1349b256
|
@ -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} -fPIE")
|
||||||
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fcf-protection")
|
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fcf-protection")
|
||||||
add_compile_options (-fdiagnostics-show-location=once)
|
add_compile_options (-fdiagnostics-show-location=once)
|
||||||
|
add_compile_options(-fno-signed-zeros -ffunction-sections)
|
||||||
|
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL Debug)
|
if(CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||||
set(LDFLAGS "${LDFLAGS} -Wl,-Og,โsort-common,โas-needed,-z,now,-pic,-pie")
|
set(LDFLAGS "${LDFLAGS} -Wl,-Og,โsort-common,โas-needed,-z,now,-pic,-pie")
|
||||||
|
|
Reference in New Issue