This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Supplying $BUILD through export'ed variable


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));

Attachment: signature.asc
Description: Digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]