[75950] trunk/dports/emulators/qemu

raimue at macports.org raimue at macports.org
Sun Feb 13 05:14:18 PST 2011


Revision: 75950
          http://trac.macports.org/changeset/75950
Author:   raimue at macports.org
Date:     2011-02-13 05:14:14 -0800 (Sun, 13 Feb 2011)
Log Message:
-----------
emulators/qemu:
Apple's GCC 4.0.1 does not define _CALL_DARWIN. Recognize __APPLE__ as well.
Fixes build on Mac OS X 10.5 ppc, closes #28386
No revision bump as the build failure prevented installation on ppc.

Modified Paths:
--------------
    trunk/dports/emulators/qemu/Portfile

Added Paths:
-----------
    trunk/dports/emulators/qemu/files/patch-ppc-tcg-target.diff

Modified: trunk/dports/emulators/qemu/Portfile
===================================================================
--- trunk/dports/emulators/qemu/Portfile	2011-02-13 12:17:54 UTC (rev 75949)
+++ trunk/dports/emulators/qemu/Portfile	2011-02-13 13:14:14 UTC (rev 75950)
@@ -21,7 +21,8 @@
                         sha1    250bba1fdb505a787c48331b6b02f54282edfc76 \
                         rmd160  4a6faaf38d5616fb7bedc1a6408de1dbb3ec360c
 
-patchfiles              patch-configure.diff
+patchfiles              patch-configure.diff \
+                        patch-ppc-tcg-target.diff
 
 depends_build           port:texinfo
 depends_lib             port:curl \

Added: trunk/dports/emulators/qemu/files/patch-ppc-tcg-target.diff
===================================================================
--- trunk/dports/emulators/qemu/files/patch-ppc-tcg-target.diff	                        (rev 0)
+++ trunk/dports/emulators/qemu/files/patch-ppc-tcg-target.diff	2011-02-13 13:14:14 UTC (rev 75950)
@@ -0,0 +1,12 @@
+Apple's GCC 4.0.1 does not define _CALL_DARWIN. Recognize __APPLE__ as well.
+--- tcg/ppc/tcg-target.h
++++ tcg/ppc/tcg-target.h
+@@ -65,7 +65,7 @@ enum {
+ /* used for function call generation */
+ #define TCG_REG_CALL_STACK TCG_REG_R1
+ #define TCG_TARGET_STACK_ALIGN 16
+-#if defined _CALL_DARWIN
++#if defined _CALL_DARWIN || defined __APPLE__
+ #define TCG_TARGET_CALL_STACK_OFFSET 24
+ #elif defined _CALL_AIX
+ #define TCG_TARGET_CALL_STACK_OFFSET 52
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110213/105bb33b/attachment.html>


More information about the macports-changes mailing list