X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=aclocal.m4;h=3e673f92b825f45dcfd6d843bf0f5a4c040b1a02;hb=94a113df234ef20ec3718a3d9285d238c1dff615;hp=288fd8320855b4ab28c6e63e00e2a0df5670f629;hpb=b6fff39114fee90b806ed2e29cc8f5d9728d85a8;p=ghc-hetmet.git diff --git a/aclocal.m4 b/aclocal.m4 index 288fd83..3e673f9 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 @@ -31,7 +39,7 @@ AC_DEFUN([FPTOOLS_SET_C_LD_FLAGS], then $2="$$2 -fno-stack-protector" fi - rm conftest.c conftest.o + rm -f conftest.c conftest.o ])