From d8c8c301ea4bf6535a7ad4f5068568ac8684cbe0 Mon Sep 17 00:00:00 2001 From: Baptiste DURAND Date: Fri, 5 Jul 2013 11:49:44 +0200 Subject: [PATCH] Fix build compatibility for x64 arch Remove FPIE gcc option to avoid relocation R_X86_64_PC32 error during build. Change-Id: I1b4012fbb55761d7c0395c7ff772b58b01b356c4 --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b2207ee..640d527 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -104,7 +104,11 @@ SET(CMAKE_CXX_FLAGS_CCOV "-O0 -std=c++0x -g --coverage") ADD_DEFINITIONS("-fPIC") # If supported for the target machine, emit position-independent code, suitable for dynamic linking and avoiding any limit on the size of the global offset table. This option makes a difference on the m68k, PowerPC and SPARC. (BJ: our ARM too?) #ADD_DEFINITIONS("-fvisibility=hidden") # Set the default ELF image symbol visibility to hidden - all symbols will be marked with this unless overridden within the code. -ADD_DEFINITIONS("-fPIE") + +# We should be building with position independent code, but something +# about the mismatch of various flags ends up breaking the build on +# x64_64 architectues. This issues is being tracked with TZIVI-1185 +#ADD_DEFINITIONS("-fPIE") ADD_DEFINITIONS("-DLIBDIR_PREFIX=\"${LIB_INSTALL_DIR}\"") -- 2.7.4