summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/squeak/Makefile2
-rw-r--r--lang/squeak/files/patch-unix_vm_sqUnixMain.c13
2 files changed, 14 insertions, 1 deletions
diff --git a/lang/squeak/Makefile b/lang/squeak/Makefile
index 674b2d02ef54..073967ef830d 100644
--- a/lang/squeak/Makefile
+++ b/lang/squeak/Makefile
@@ -45,7 +45,7 @@ NO_STAGE= yes
##################################################
DIST_SUBDIR= squeak
-ONLY_FOR_ARCHS= i386 amd64
+ONLY_FOR_ARCHS= i386 amd64 powerpc
MAN1= squeak.1
USE_GCC= any
USE_GL= gl
diff --git a/lang/squeak/files/patch-unix_vm_sqUnixMain.c b/lang/squeak/files/patch-unix_vm_sqUnixMain.c
new file mode 100644
index 000000000000..269d2a0b98bb
--- /dev/null
+++ b/lang/squeak/files/patch-unix_vm_sqUnixMain.c
@@ -0,0 +1,13 @@
+--- unix/vm/sqUnixMain.c.bak 2013-12-05 13:49:51 -0800
++++ unix/vm/sqUnixMain.c
+@@ -1334,8 +1334,8 @@
+ || defined(POWERPC) || defined(__POWERPC) || defined (__POWERPC__) )
+ void mtfsfi(unsigned long long fpscr)
+ {
+- __asm__("lfd f0, %0" :: "m"(fpscr));
+- __asm__("mtfsf 0xff, f0");
++ __asm__("lfd 0, %0" :: "m"(fpscr));
++ __asm__("mtfsf 0xff, 0");
+ }
+ #else
+ # define mtfsfi(fpscr)