r20095 by craig - Add more platform support for fPIC for lib2geom from Gentoo

scribus-commit scribus-commit at lists.scribus.net
Tue May 19 08:10:29 UTC 2015


Author: craig
Date: Tue May 19 08:10:29 2015
New Revision: 20095

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20095
Log:
Add more platform support for fPIC for lib2geom from Gentoo

Modified:
    trunk/Scribus/scribus/third_party/lib2geom/CMakeLists.txt

Modified: trunk/Scribus/scribus/third_party/lib2geom/CMakeLists.txt
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20095&path=/trunk/Scribus/scribus/third_party/lib2geom/CMakeLists.txt
==============================================================================
--- trunk/Scribus/scribus/third_party/lib2geom/CMakeLists.txt (original)
+++ trunk/Scribus/scribus/third_party/lib2geom/CMakeLists.txt Tue May 19 08:10:29 2015
@@ -5,10 +5,13 @@
 
 SET(2GEOM_VERSION 0.1.0)
 
-# We need to pass -fPIC only to lib2geom on amd64 - avoid it elsewhere see: http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3
-IF (ARCH_X86_64 EQUAL 1)
+# We need to pass -fPIC to lib2geom on amd64, mips, mipsel, and hppa. See:
+# http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3 and
+# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=559133
+
+IF (ARCH_X86_64 EQUAL 1 OR ARCH_HPPA EQUAL 1 OR ARCH_MIPS EQUAL 1 OR ARCH_MIPS_64 EQUAL 1 OR ARCH_PPC_64 EQUAL 1)
   SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
-ENDIF (ARCH_X86_64 EQUAL 1)
+ENDIF (ARCH_X86_64 EQUAL 1 OR ARCH_HPPA EQUAL 1 OR ARCH_MIPS EQUAL 1 OR ARCH_MIPS_64 EQUAL 1 OR ARCH_PPC_64 EQUAL 1)
 
 OPTION(2GEOM_BUILD_SHARED
   "Build lib2geom and libtoy as shared libraries."




More information about the scribus-commit mailing list