diff options
author | Ian Lynagh <igloo@earth.li> | 2010-07-23 22:30:59 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2010-07-23 22:30:59 +0000 |
commit | 30fad70245d9ddfae0b781460bc51468a01f92f6 (patch) | |
tree | 47fd8aaf1fd55b190c1e84f38a356b1c4cbbb6f7 /aclocal.m4 | |
parent | ae8cc32e169e8d958f257714c1ae727e1a56a5e0 (diff) | |
download | haskell-30fad70245d9ddfae0b781460bc51468a01f92f6.tar.gz |
Use different CC/LD options for different stages
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/aclocal.m4 b/aclocal.m4 index fe83327fe7..53bd165bec 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -4,6 +4,24 @@ # ensure we don't clash with any pre-supplied autoconf ones. +# FPTOOLS_SET_C_LD_FLAGS +# ---------------------------------- +# Set the C and LD flags for a given platform +AC_DEFUN([FPTOOLS_SET_C_LD_FLAGS], +[ + case $$1 in + i386-apple-darwin|powerpc-apple-darwin) + $2="$$2 -m32" + $3="$$3 -m32" + ;; + x86_64-apple-darwin) + $2="$$2 -m64" + $3="$$3 -m64" + ;; + esac +]) + + # FPTOOLS_FLOAT_WORD_ORDER_BIGENDIAN # ---------------------------------- # Little endian Arm on Linux with some ABIs has big endian word order |