From e875f69ea23a8dd5046a653d657bff5d3491926e Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Mon, 2 Dec 2024 19:38:57 -0800 Subject: [PATCH] Looks like PIE workaround is not needed anymore. Remove it (#5044) Signed-off-by: Anton Korobeynikov --- CMakeLists.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 14180926591..bc21ef31e76 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -140,9 +140,6 @@ if (CMAKE_UNITY_BUILD) set(CMAKE_UNITY_BUILD_BATCH_SIZE 10 CACHE UNINITIALIZED "Set the unity build batch size.") 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)