pkgsrc-ng/net/tigervnc/patches/patch-common_CMakeLists.txt
2016-01-21 23:42:40 +01:00

14 lines
543 B
Plaintext

$NetBSD: patch-common_CMakeLists.txt,v 1.2 2015/07/21 21:51:39 markd Exp $
--- common/CMakeLists.txt.orig 2015-07-11 13:00:36.000000000 +0000
+++ common/CMakeLists.txt
@@ -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(NOT WIN32)
set_target_properties(os rdr network Xregion rfb
PROPERTIES COMPILE_FLAGS -fPIC)
endif()