summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-12-03 20:15:58 +0000
committerIan Lynagh <igloo@earth.li>2010-12-03 20:15:58 +0000
commit819dbcb57fe84f8e9777d4eb63e6c2ba7134691f (patch)
tree79dcba44686a9d8263b3918bd33fab533cfb8d65 /aclocal.m4
parent1bed452fb7c3b5c55c734920a26c0e6a35298deb (diff)
downloadhaskell-819dbcb57fe84f8e9777d4eb63e6c2ba7134691f.tar.gz
Tell gcc to support back to OS X 10.5
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index 1ca1ec6869..3e673f92b8 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -24,6 +24,14 @@ AC_DEFUN([FPTOOLS_SET_C_LD_FLAGS],
;;
esac
+ case $$1 in
+ i386-apple-darwin|x86_64-apple-darwin)
+ # We support back to OS X 10.5
+ $2="$$2 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5"
+ $3="$$3 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5"
+ ;;
+ esac
+
# If gcc knows about the stack protector, turn it off.
# Otherwise the stack-smash handler gets triggered.
echo 'int main(void) {return 0;}' > conftest.c