gnu-prolog: fix build on Lion

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Richard Osborn 2011-08-19 14:59:50 -05:00 committed by Jack Nagel
parent ee5e670927
commit 11545a2ede

View file

@ -7,6 +7,12 @@ class GnuProlog < Formula
skip_clean :all
fails_with_llvm
# Applies fix as seen here:
# http://lists.gnu.org/archive/html/users-prolog/2011-07/msg00013.html
def patches; DATA; end
def install
ENV.j1 # make won't run in parallel
@ -17,3 +23,26 @@ class GnuProlog < Formula
end
end
end
__END__
diff -rupN a/src/configure b/src/configure
--- a/src/configure 2011-08-19 14:45:19.000000000 -0500
+++ b/src/configure 2011-08-19 14:47:00.000000000 -0500
@@ -3700,7 +3700,7 @@ else
fi
AS0=as
case "$host" in
- i*86*darwin10*) ASFLAGS='-arch i686';;
+ i*86*darwin1*) ASFLAGS='-arch i686';;
x86_64*solaris*) AS0=gas; ASFLAGS='--64';;
*) if test "$with_gas" = yes; then AS0=gas; fi;;
esac
@@ -4614,7 +4614,7 @@ else
CFLAGS_MACHINE=
case "$host" in
- i*86*darwin10*) CFLAGS_MACHINE='-march=i686 -m32';;
+ i*86*darwin1*) CFLAGS_MACHINE='-march=i686 -m32';;
mips*irix*) CFLAGS_MACHINE='-march=4000';;
*sparc*sunos4.1.3) CFLAGS_MACHINE='-msupersparc';;
*sparc*solaris) CFLAGS_MACHINE='-msupersparc';;