feat add CMAKE_POSITION_INDEPENDENT_CODE
All checks were successful
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (push) Successful in 1m57s
linux-arm-gcc / linux-gcc-armhf (push) Successful in 2m7s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Successful in 2m10s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Successful in 2m31s
linux-x64-gcc / linux-gcc (Release) (push) Successful in 2m32s
linux-x64-gcc / linux-gcc (Debug) (push) Successful in 2m47s

This commit is contained in:
tqcq 2024-04-14 02:48:06 +08:00
parent 5b45b01611
commit 26c643d026

View File

@ -12,6 +12,7 @@ endif()
# set(CMAKE_C_FLAGS "-gdwarf-3 -gstrict-dwarf") set(CMAKE_CXX_FLAGS "-gdwarf-3 # set(CMAKE_C_FLAGS "-gdwarf-3 -gstrict-dwarf") set(CMAKE_CXX_FLAGS "-gdwarf-3
# -gstrict-dwarf") # -gstrict-dwarf")
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
option(SLED_BUILD_BENCHMARK "Build benchmark" OFF) option(SLED_BUILD_BENCHMARK "Build benchmark" OFF)
option(SLED_BUILD_TESTS "Build tests" OFF) option(SLED_BUILD_TESTS "Build tests" OFF)
option(SLED_BUILD_FUZZ "Build fuzzer test" OFF) option(SLED_BUILD_FUZZ "Build fuzzer test" OFF)