diff options
author | jperkin <jperkin> | 2012-07-13 16:12:41 +0000 |
---|---|---|
committer | jperkin <jperkin> | 2012-07-13 16:12:41 +0000 |
commit | f6bb738d6a14a0be671ec705eb6007e707b2dc93 (patch) | |
tree | db9068ee0130a1cda38aec15dc79478f5d6cffba /bootstrap | |
parent | 3012d2bd3635e57d1680198051fc40f8e0c52365 (diff) | |
download | pkgsrc-f6bb738d6a14a0be671ec705eb6007e707b2dc93.tar.gz |
Support GCCBASE in bootstrap, and provide a working example based on OmniOS.
Diffstat (limited to 'bootstrap')
-rw-r--r-- | bootstrap/README.Solaris | 12 | ||||
-rwxr-xr-x | bootstrap/bootstrap | 5 |
2 files changed, 14 insertions, 3 deletions
diff --git a/bootstrap/README.Solaris b/bootstrap/README.Solaris index e1deab5886b..c089b1049cd 100644 --- a/bootstrap/README.Solaris +++ b/bootstrap/README.Solaris @@ -1,4 +1,4 @@ -$NetBSD: README.Solaris,v 1.13 2012/01/11 01:15:17 riz Exp $ +$NetBSD: README.Solaris,v 1.14 2012/07/13 16:12:41 jperkin Exp $ You will need a working C compiler. Any version of gcc >2.8 should work, 2.95.x and 3.x have been tested. SunPro 5 and 8 have been @@ -48,8 +48,16 @@ for building all packages. See http://www.NetBSD.org/docs/software/packages.html for binary kits and initial packages, including gcc. +If the gcc installation is not in your $PATH you will need to pass +additional flags to bootstrap, for example: + + env CC=/opt/gcc-4.6.3/bin/gcc \ + GCCBASE=/opt/gcc-4.6.3 \ + ./bootstrap --abi=64 + It is recommended that an external gcc be used only for bootstrapping, -then remove gcc and install the pkgsrc binary package. +and that you set USE_PKGSRC_GCC=yes in mk.conf so that the appropriate +pkgsrc gcc is installed and used. Binary packages of gcc can be found through http://www.sunfreeware.com/ diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap index dde7bb3daae..5ea8da66295 100755 --- a/bootstrap/bootstrap +++ b/bootstrap/bootstrap @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: bootstrap,v 1.177 2012/06/15 09:54:41 jperkin Exp $ +# $NetBSD: bootstrap,v 1.178 2012/07/13 16:12:41 jperkin Exp $ # # Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org> # All rights reserved. @@ -866,6 +866,9 @@ sunpro) echo "CPP= \${CC} -E" >> ${TARGET_MKCONF} ;; esac +if [ -n "$GCCBASE" ]; then + echo "GCCBASE= $GCCBASE" >> ${TARGET_MKCONF} +fi if [ -n "$SUNWSPROBASE" ]; then echo "SUNWSPROBASE= $SUNWSPROBASE" >> ${TARGET_MKCONF} fi |