diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2013-05-13 14:50:23 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2013-05-13 14:50:23 +0000 |
commit | 1f7ded3c5c6e90133e43bc198157a310a01cc4f2 (patch) | |
tree | fe9cbc29b6d2ee606c2e9a476d01283d2cd9db51 | |
parent | 20816515fc6c3512b15f39fbc4ec4822b0b53043 (diff) | |
download | compcert-kvx-1f7ded3c5c6e90133e43bc198157a310a01cc4f2.tar.gz compcert-kvx-1f7ded3c5c6e90133e43bc198157a310a01cc4f2.zip |
MacOS: try to add link option -Wl,-no-pie when needed e.g. 10.8 and up.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2249 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
-rwxr-xr-x | configure | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -120,7 +120,12 @@ case "$target" in cc="${toolprefix}gcc -arch i386" cprepro="${toolprefix}gcc -arch i386 -U__GNUC__ -U__BLOCKS__ -E" casm="${toolprefix}gcc -arch i386 -c" - clinker="${toolprefix}gcc -arch i386" + case `uname -r` in + [1-9].*|10.*|11.*) # up to MacOS 10.7 included + clinker="${toolprefix}gcc -arch i386";; + *) # MacOS 10.8 and up + clinker="${toolprefix}gcc -arch i386 -Wl,-no-pie";; + esac libmath="";; ia32-cygwin) arch="ia32" |