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]

Re: Supplying $BUILD through export'ed variable


Jan-Benedict Glaw wrote:
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

Sure, I can do that. (I'll probably make it take GCC_BUILD as the environment variable, though, by analogy with GCC_HOST. I can't use HOST because that's overidden by tcsh.) Can I ask why this helps, though? How is your BUILD different from what config.guess outputs? - Dan

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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