From 750d17bb72adf1f0a9a384b68c7dfd034f2b7bb8 Mon Sep 17 00:00:00 2001 From: Vladislav Khmelevsky Date: Wed, 16 Nov 2022 12:15:15 +0400 Subject: [PATCH] [BOLT][runtime] Change fPIE flag to fPIC Since instrumentation could be used on libraries we need to use fPIC, not fPIE flag. Differential Revision: https://reviews.llvm.org/D138099 --- bolt/runtime/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bolt/runtime/CMakeLists.txt b/bolt/runtime/CMakeLists.txt index c685819aec82..7d177f7c598b 100644 --- a/bolt/runtime/CMakeLists.txt +++ b/bolt/runtime/CMakeLists.txt @@ -28,7 +28,7 @@ set(BOLT_RT_FLAGS -fno-rtti -fno-stack-protector -mno-sse - -fPIE) + -fPIC) # Don't let the compiler think it can create calls to standard libs target_compile_options(bolt_rt_instr PRIVATE ${BOLT_RT_FLAGS})