[83123] trunk/dports/lang/pypy
jmr at macports.org
jmr at macports.org
Thu Aug 25 18:48:27 PDT 2011
Revision: 83123
http://trac.macports.org/changeset/83123
Author: jmr at macports.org
Date: 2011-08-25 18:48:25 -0700 (Thu, 25 Aug 2011)
Log Message:
-----------
pypy: change archflags when using non-apple gcc (#30976)
Modified Paths:
--------------
trunk/dports/lang/pypy/Portfile
Added Paths:
-----------
trunk/dports/lang/pypy/files/darwin.py-archflags.diff
Modified: trunk/dports/lang/pypy/Portfile
===================================================================
--- trunk/dports/lang/pypy/Portfile 2011-08-26 01:10:31 UTC (rev 83122)
+++ trunk/dports/lang/pypy/Portfile 2011-08-26 01:48:25 UTC (rev 83123)
@@ -47,6 +47,7 @@
if {![file executable ${configure.cc}]} {
depends_lib-append port:gcc45
configure.compiler macports-gcc-4.5
+ patchfiles-append darwin.py-archflags.diff
}
# use arch -foo if available
if {${os.major} >= 9} {
Added: trunk/dports/lang/pypy/files/darwin.py-archflags.diff
===================================================================
--- trunk/dports/lang/pypy/files/darwin.py-archflags.diff (rev 0)
+++ trunk/dports/lang/pypy/files/darwin.py-archflags.diff 2011-08-26 01:48:25 UTC (rev 83123)
@@ -0,0 +1,17 @@
+--- pypy/translator/platform/darwin.py.orig 2011-08-26 11:44:13.000000000 +1000
++++ pypy/translator/platform/darwin.py 2011-08-26 11:44:56.000000000 +1000
+@@ -70,10 +70,10 @@
+
+ class Darwin_i386(Darwin):
+ name = "darwin_i386"
+- link_flags = ('-arch', 'i386')
+- cflags = ('-arch', 'i386', '-O3', '-fomit-frame-pointer')
++ link_flags = ('-m32')
++ cflags = ('-m32', '-O3', '-fomit-frame-pointer')
+
+ class Darwin_x86_64(Darwin):
+ name = "darwin_x86_64"
+- link_flags = ('-arch', 'x86_64')
+- cflags = ('-arch', 'x86_64', '-O3', '-fomit-frame-pointer')
++ link_flags = ('-m64')
++ cflags = ('-m64', '-O3', '-fomit-frame-pointer')
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110825/13e840a2/attachment.html>
More information about the macports-changes
mailing list