]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tracing: remove -pie if using function instrumentation 15055/head
authorMohamad Gebai <mgebai@suse.com>
Thu, 11 May 2017 16:41:21 +0000 (12:41 -0400)
committerMohamad Gebai <mgebai@suse.com>
Thu, 25 May 2017 19:16:21 +0000 (15:16 -0400)
Signed-off-by: Mohamad Gebai <mgebai@suse.com>
src/CMakeLists.txt

index 0c87b5507d6a3321687c49177cf2c53eb86cbc70..80329fc645d2ab39237f0c600e20b9d51251309d 100644 (file)
@@ -39,7 +39,9 @@ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unknown-pragmas")
 if(CMAKE_CXX_COMPILER_ID STREQUAL GNU)
   set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -rdynamic")
   set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wstrict-null-sentinel -Woverloaded-virtual")
-  set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie")
+  if(NOT WITH_OSD_INSTRUMENT_FUNCTIONS)
+    set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie")
+  endif()
 elseif(CMAKE_CXX_COMPILER_ID STREQUAL Clang)
   set(CMAKE_EXE_LINKER_FLAGS "-Wl,-export-dynamic")
   set(CMAKE_LINKER_FLAGS "${CMAKE_LINKER_FLAGS} -rdynamic -Wl,-export-dynamic -export-dynamic")