Fix build on i386

reported by and ok naddy@
This commit is contained in:
mpi 2011-10-12 20:13:33 +00:00
parent 75d6ca7ada
commit 76973c6fde

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-Make_unix,v 1.3 2011/10/08 15:02:51 mpi Exp $
$OpenBSD: patch-Make_unix,v 1.4 2011/10/12 20:13:33 mpi Exp $
--- Make.unix.orig Wed Aug 26 07:44:41 2009
+++ Make.unix Sat Oct 8 12:49:18 2011
@@ -5,8 +5,8 @@
@ -17,5 +17,5 @@ $OpenBSD: patch-Make_unix,v 1.3 2011/10/08 15:02:51 mpi Exp $
libmachdep.a:
- arch=`uname -m|sed 's/i.86/386/;s/Power Macintosh/power/; s/x86_64/amd64/'`; \
+ arch=`arch -s|sed 's/powerpc/power/; s/sparc64/sun4u/; s/mips64el/mips/; s/mips64/mips/'`; \
+ arch=`arch -s|sed 's/i386/386/; s/powerpc/power/; s/sparc64/sun4u/; s/mips64el/mips/; s/mips64/mips/'`; \
(cd posix-$$arch && make)