X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=aclocal.m4;h=4701bc93541992a5e2dc3cddfe99d0c991a0515a;hb=c0eb9d997653da4357873829990cc338475bca39;hp=1ca1ec6869b042ca16a76ba6150a782836187dbb;hpb=b56d78783390e922c4bc8106f04729de01749e01;p=ghc-hetmet.git diff --git a/aclocal.m4 b/aclocal.m4 index 1ca1ec6..4701bc9 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -9,6 +9,7 @@ # Set the C and LD flags for a given platform AC_DEFUN([FPTOOLS_SET_C_LD_FLAGS], [ + AC_MSG_CHECKING([Setting up $2 and $3]) case $$1 in i386-apple-darwin) # By default, gcc on OS X will generate SSE @@ -24,6 +25,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 @@ -32,6 +41,7 @@ AC_DEFUN([FPTOOLS_SET_C_LD_FLAGS], $2="$$2 -fno-stack-protector" fi rm -f conftest.c conftest.o + AC_MSG_RESULT([done]) ])