]> source.dussan.org Git - tigervnc.git/commitdiff
Compile common code with -fPIC on all non-Windows platforms
authorPierre Ossman <ossman@cendio.se>
Mon, 4 Jan 2016 13:10:25 +0000 (14:10 +0100)
committerPierre Ossman <ossman@cendio.se>
Mon, 4 Jan 2016 13:10:25 +0000 (14:10 +0100)
There are more platforms than x86_64 that need -fPIC, so include
it whenever possible.

common/CMakeLists.txt

index 16e2a35e19af47ce9ceb1520e5aa5fecea867812..e0431e6230657ae7c528495ae5a758ddc25b402b 100644 (file)
@@ -9,7 +9,7 @@ add_subdirectory(rfb)
 # because PIC code does not exist on that platform and MinGW complains if -fPIC
 # is passed (additionally, libvnc is not used on Windows.)
 
-if(CMAKE_COMPILER_IS_GNUCXX AND (CMAKE_SIZEOF_VOID_P MATCHES 8) AND NOT WIN32)
+if(CMAKE_COMPILER_IS_GNUCXX AND NOT WIN32)
   set_target_properties(os rdr network Xregion rfb
     PROPERTIES COMPILE_FLAGS -fPIC)
 endif()