summaryrefslogtreecommitdiffstats
path: root/common/zlib
diff options
context:
space:
mode:
authorDRC <dcommander@users.sourceforge.net>2011-08-23 20:35:06 +0000
committerDRC <dcommander@users.sourceforge.net>2011-08-23 20:35:06 +0000
commitce82f4bbcd4fe491132a0b9aa772e25159179ba1 (patch)
treec3123c8d85cc70653faa936931ddea998e7e6b08 /common/zlib
parentf340e7c33813e4979e817209fe3d93d3a685cfdf (diff)
downloadtigervnc-ce82f4bbcd4fe491132a0b9aa772e25159179ba1.tar.gz
tigervnc-ce82f4bbcd4fe491132a0b9aa772e25159179ba1.zip
Move setting of PIC code to a central location
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4648 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/zlib')
-rw-r--r--common/zlib/CMakeLists.txt8
1 files changed, 0 insertions, 8 deletions
diff --git a/common/zlib/CMakeLists.txt b/common/zlib/CMakeLists.txt
index ecee0eb9..69f1c9f9 100644
--- a/common/zlib/CMakeLists.txt
+++ b/common/zlib/CMakeLists.txt
@@ -20,11 +20,3 @@ add_library(zlib STATIC
trees.c
uncompr.c
zutil.c)
-
-# This code goes into libvnc.so, so it needs to be PIC on x86_64.
-# (It should be on other archs as well, but we prefer performance over memory
-# efficiency. Win64 is excluded because PIC is always on there and it
-# complains when you give it the explicit flag.)
-if(CMAKE_COMPILER_IS_GNUCXX AND (CMAKE_SIZEOF_VOID_P MATCHES 8) AND NOT WIN32)
- set_target_properties(zlib PROPERTIES COMPILE_FLAGS -fPIC)
-endif()