Fix build compatibility for x64 arch 53/5553/1
authorBaptiste DURAND <baptiste.durand@eurogiciel.fr>
Fri, 5 Jul 2013 09:49:44 +0000 (11:49 +0200)
committerRusty Lynch <rusty.lynch@intel.com>
Mon, 8 Jul 2013 16:32:42 +0000 (09:32 -0700)
Remove FPIE gcc option to avoid relocation R_X86_64_PC32 error during build.

Change-Id: I1b4012fbb55761d7c0395c7ff772b58b01b356c4

CMakeLists.txt

index b2207ee..640d527 100644 (file)
@@ -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}\"")