diff options
author | jperkin <jperkin@pkgsrc.org> | 2014-03-07 14:59:42 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2014-03-07 14:59:42 +0000 |
commit | ddbd9c70a422a29868a894e3f59c3ef145abce52 (patch) | |
tree | f39bc55bd73fb6ac44515cc2eb84e333d69e1f83 /bootstrap | |
parent | 47ce0c66531e12f804d5347666e466906e20623d (diff) | |
download | pkgsrc-ddbd9c70a422a29868a894e3f59c3ef145abce52.tar.gz |
Add bootstrap support for multiarch support on Linux. For now only
building 32-bit packages on x86_64 is supported.
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap/bootstrap | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap index 6b452252793..e6867d1b3cc 100755 --- a/bootstrap/bootstrap +++ b/bootstrap/bootstrap @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: bootstrap,v 1.201 2014/02/10 10:43:02 ryoon Exp $ +# $NetBSD: bootstrap,v 1.202 2014/03/07 14:59:42 jperkin Exp $ # # Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org> # All rights reserved. @@ -473,6 +473,7 @@ root_user=root bmakexenv= bmakexargs= need_extras=no +set_machine_arch=no use_bsdinstall= case "$opsys" in AIX) @@ -672,6 +673,12 @@ Linux) need_sed=no set_opsys=no machine_arch=`uname -m | sed -e 's/i.86/i386/'` + # Support multiarch systems. + if [ "$machine_arch" = "x86_64" -a "$abi" = "32" ]; then + machine_arch=i386 + set_machine_arch=yes + bmakexargs="MACHINE_ARCH=$machine_arch" + fi ;; Minix) root_group=operator @@ -934,6 +941,9 @@ fi if [ -n "$abi" ]; then echo "ABI= $abi" >> ${TARGET_MKCONF} fi +if [ "$set_machine_arch" = "yes" ]; then + echo "MACHINE_ARCH= $machine_arch" >> ${TARGET_MKCONF} +fi if [ "$compiler" != "" ]; then echo "PKGSRC_COMPILER= $compiler" >> ${TARGET_MKCONF} fi |