Supplying $BUILD through export'ed variable

Jan-Benedict Glaw jbglaw@lug-owl.de
Thu May 27 11:31:00 GMT 2004


Hi Dan!

To make crosstool.sh as standalone as possible, I'd like to ask you to
accept this patch. It makes crosstool.sh to only call config.guess iff
$BUILD wasn't supplied by it's caller:

--- crosstool.sh~BUILD_from_external	2004-05-26 23:19:20.000000000 +0200
+++ crosstool.sh	2004-05-26 23:19:54.000000000 +0200
@@ -62,7 +62,9 @@
 # Get description of the build machine from autotools, but since old
 # autotools (e.g. the one in gcc-2.95) barfs if you're on an x86_64,
 # use our own copy
-BUILD=`$TOP_DIR/config.guess`
+if test -z "${BUILD}"; then
+	BUILD=`$TOP_DIR/config.guess`
+fi
 
 if test "$GCC_HOST" != ""; then
 	# Modify $BUILD so gcc never, ever thinks $build = $host

MfG, JBG

-- 
   Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481
   "Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg
    fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!
   ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20040527/3505d7a9/attachment.sig>


More information about the crossgcc mailing list