diff options
author | jperkin <jperkin> | 2015-11-09 10:54:44 +0000 |
---|---|---|
committer | jperkin <jperkin> | 2015-11-09 10:54:44 +0000 |
commit | 8e044262a909f3ac6fcff6e0e77d2ed13edd7b6b (patch) | |
tree | b74685909e8c2c0abf03e42283ff0bb0508a507b /bootstrap | |
parent | caa4821e0e2144ce0c85821d95358939871a38d5 (diff) | |
download | pkgsrc-8e044262a909f3ac6fcff6e0e77d2ed13edd7b6b.tar.gz |
Default to ABI=64 on Darwin hosts which report as x86_64.
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap/bootstrap | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap index fe7eea119a8..fe808bfbd46 100755 --- a/bootstrap/bootstrap +++ b/bootstrap/bootstrap @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: bootstrap,v 1.220 2015/11/07 19:55:46 sevan Exp $ +# $NetBSD: bootstrap,v 1.221 2015/11/09 10:54:44 jperkin Exp $ # # Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org> # All rights reserved. @@ -175,10 +175,23 @@ get_abi() abi_opsys=$@ if [ -n "$abi" ]; then - die "ERROR: $abi_opsys has special ABI handling, --abi not supported (yet)." + case "$abi_opsys" in + IRIX) + die "ERROR: $abi_opsys has special ABI handling, --abi not supported (yet)." + ;; + esac fi case "$abi_opsys" in + Darwin) + if [ -z "$abi" ]; then + case `uname -m` in + x86_64) + abi="64" + ;; + esac + fi + ;; IRIX) if [ `uname -r` -ge 6 ]; then abi=`sed -e 's/.*\(abi=\)\([on]*[36][24]\).*/\2/' /etc/compiler.defaults` @@ -541,6 +554,7 @@ Darwin) need_awk=no need_sed=no set_opsys=no + get_abi "Darwin" machine_arch=`uname -p` CC=${CC:-"cc -isystem /usr/include"}; export CC check_compiler=yes |