mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-01 04:59:47 -05:00
sml-nj: add patch for Lion
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
1 parent
4574cd4a3e
commit
0ea048dbcc
1 file changed
+35
@@ -27,6 +27,14 @@ request heap2asm
|
||||
EOS
|
||||
end
|
||||
|
||||
# fixes the install.sh script to use the correct SDK for Lion. See:
|
||||
# https://smlnj-gforge.cs.uchicago.edu/tracker/index.php?func=detail&aid=89&group_id=33&atid=215
|
||||
# https://github.com/mxcl/homebrew/issues/11370
|
||||
# https://github.com/mxcl/homebrew/pull/11443
|
||||
def patches
|
||||
DATA
|
||||
end
|
||||
|
||||
def install
|
||||
ENV.deparallelize
|
||||
# smlnj is much easier to build if we do so in the directory where it
|
||||
@@ -55,3 +63,30 @@ EOS
|
||||
EOS
|
||||
end
|
||||
end
|
||||
|
||||
__END__
|
||||
diff --git a/install.sh b/install.sh
|
||||
index ea5f8c3..0108774 100755
|
||||
--- a/install.sh
|
||||
+++ b/install.sh
|
||||
@@ -290,6 +290,11 @@ case $ARCH in
|
||||
esac
|
||||
|
||||
case $OPSYS in
|
||||
+ darwin)
|
||||
+ # finding the correct SDK
|
||||
+ SDKVERSION=`/usr/bin/sw_vers -productVersion | grep -o ^[0-9][0-9]\.[0-9]`
|
||||
+ EXTRA_DEFS="SDK=-isysroot /Developer/SDKs/MacOSX$SDKVERSION.sdk -mmacosx-version-min=$SDKVERSION"
|
||||
+ ;;
|
||||
solaris)
|
||||
MAKE=/usr/ccs/bin/make
|
||||
;;
|
||||
@@ -338,7 +343,7 @@ else
|
||||
"$CONFIGDIR"/unpack "$ROOT" runtime
|
||||
cd "$BASEDIR"/runtime/objs
|
||||
echo $this: Compiling the run-time system.
|
||||
- $MAKE -f mk.$ARCH-$OPSYS $EXTRA_DEFS
|
||||
+ $MAKE -f mk.$ARCH-$OPSYS "$EXTRA_DEFS"
|
||||
if [ -x run.$ARCH-$OPSYS ]; then
|
||||
mv run.$ARCH-$OPSYS "$RUNDIR"
|
||||
if [ -f runx.$ARCH-$OPSYS ]; then
|
||||
Reference in new issue
Block a user