Skip to content

Commit

Permalink
Try to disable PIE
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Korobeynikov <[email protected]>
  • Loading branch information
asl committed Nov 26, 2024
1 parent ccf71bf commit 39f4ecb
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,8 @@ endif()
if (CMAKE_UNITY_BUILD)
# If unity builds are enabled, choose an aggressive batch size.
set(CMAKE_UNITY_BUILD_BATCH_SIZE 10 CACHE UNINITIALIZED "Set the unity build batch size.")
# Disable PCHs as they conflict with PIC settings above
set(ENABLE_PCH OFF)
endif ()

# Always build position-independent code. This is important when linking with Protobuf.
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

# Set the required options for a (mostly) static release build.
if(STATIC_BUILD_WITH_DYNAMIC_GLIBC OR STATIC_BUILD_WITH_DYNAMIC_STDLIB)
if (STATIC_BUILD_WITH_DYNAMIC_GLIBC AND STATIC_BUILD_WITH_DYNAMIC_STDLIB)
Expand Down

0 comments on commit 39f4ecb

Please sign in to comment.