[MacPorts] #46943: py27-gobject3 fails to build on MacOS 10.5.8 PPC; can fix problem with -fPIC
MacPorts
noreply at macports.org
Wed Mar 11 14:29:39 PDT 2015
#46943: py27-gobject3 fails to build on MacOS 10.5.8 PPC; can fix problem with
-fPIC
--------------------------+-----------------------------
Reporter: paulccobb@… | Owner: cal@…
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.3.3
Resolution: | Keywords: leopard powerpc
Port: py-gobject3 |
--------------------------+-----------------------------
Comment (by cal@…):
Sorry that patch has a syntax error, this one is the right one:
{{{
#!patch
Index: Portfile
===================================================================
--- Portfile (revision 133802)
+++ Portfile (working copy)
@@ -48,6 +48,13 @@
--disable-silent-rules
configure.cppflags-append \
-I${python.prefix}/include
+ platform darwin {
+ # PowerPC builds fail because -mdynamic_no_pic is the default,
#46943
+ if {([variant_isset universal] && ("ppc" in ${universal_archs} ||
"ppc64" in ${universal_archs}))
+ || (![variant_isset universal] && [string match "ppc*"
${build_arch}])} {
+ configure.cflags-append -fPIC
+ }
+ }
build.cmd [portbuild::build_getmaketype]
build.target
}}}
--
Ticket URL: <https://trac.macports.org/ticket/46943#comment:5>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list