Fix build for powerpc

ok ajacoutot@
This commit is contained in:
mpi 2011-10-08 15:02:51 +00:00
parent fcba3d6743
commit 666320c563
2 changed files with 18 additions and 5 deletions

View File

@ -1,7 +1,7 @@
$OpenBSD: patch-Make_unix,v 1.2 2011/09/21 11:26:09 ajacoutot Exp $
$OpenBSD: patch-Make_unix,v 1.3 2011/10/08 15:02:51 mpi Exp $
--- Make.unix.orig Wed Aug 26 07:44:41 2009
+++ Make.unix Wed Jul 20 19:57:34 2011
@@ -5,8 +5,8 @@ AR=ar
+++ Make.unix Sat Oct 8 12:49:18 2011
@@ -5,8 +5,8 @@
AS=as
RANLIB=ranlib
X11=/usr/X11R6
@ -12,10 +12,10 @@ $OpenBSD: patch-Make_unix,v 1.2 2011/09/21 11:26:09 ajacoutot Exp $
O=o
OS=posix
GUI=x11
@@ -19,5 +19,5 @@ AUDIO=unix
@@ -19,5 +19,5 @@
all: default
libmachdep.a:
- arch=`uname -m|sed 's/i.86/386/;s/Power Macintosh/power/; s/x86_64/amd64/'`; \
+ arch=`uname -m|sed 's/i.86/386/;s/Power Macintosh/power/; s/x86_64/amd64/; s/sparc64/sun4u/; s/sgi/mips/; s/macppc/power/'`; \
+ arch=`arch -s|sed 's/powerpc/power/; s/sparc64/sun4u/; s/mips64el/mips/; s/mips64/mips/'`; \
(cd posix-$$arch && make)

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-posix-power_Makefile,v 1.1 2011/10/08 15:02:51 mpi Exp $
Needed to assemble tas.c that uses inline assembly "portable" to Mac OSX.
--- posix-power/Makefile.orig Sat Oct 8 13:12:04 2011
+++ posix-power/Makefile Sat Oct 8 13:20:17 2011
@@ -2,6 +2,8 @@
include ../Make.config
LIB=../libmachdep.a
+CFLAGS+= -Wa,-mregnames
+
OFILES=\
getcallerpc.$O\
md5block.$O\