[91801] trunk/dports/devel/orc/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Tue Apr 10 16:40:32 PDT 2012
Revision: 91801
https://trac.macports.org/changeset/91801
Author: jeremyhu at macports.org
Date: 2012-04-10 16:40:32 -0700 (Tue, 10 Apr 2012)
Log Message:
-----------
orc: Build fix for non-universal i386
clang and gcc-4.0 build this fine at -O2. I see the issue with apple-gcc-4.2.
I didn't try with llvm-gcc-4.2, but leaving it at -O1 won't hurt.
Modified Paths:
--------------
trunk/dports/devel/orc/Portfile
Modified: trunk/dports/devel/orc/Portfile
===================================================================
--- trunk/dports/devel/orc/Portfile 2012-04-10 22:53:54 UTC (rev 91800)
+++ trunk/dports/devel/orc/Portfile 2012-04-10 23:40:32 UTC (rev 91801)
@@ -23,7 +23,16 @@
patch_orc-test_orcarray.c.diff \
patch_config.h.in.diff
-lappend merger_configure_cflags(i386) -O1
+# {standard input}:11509:non-relocatable subtraction expression, "LC0" minus "L00000000008$pb"
+# {standard input}:11509:symbol: "L00000000008$pb" can't be undefined in a subtraction expression
+# {standard input}:unknown:Undefined local symbol L00000000008$pb
+if {[string match "*gcc-4.2" ${configure.compiler}]} {
+ lappend merger_configure_cflags(i386) -O1
+ if {![variant_isset universal] && ${build_arch} == "i386"} {
+ configure.cflags-delete -O2
+ configure.cflags-append -O1
+ }
+}
livecheck.type regex
livecheck.url ${master_sites}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120410/a8b0c421/attachment-0001.html>
More information about the macports-changes
mailing list