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]

crosstool.sh: Brown paper-bag bug


On Mon, 2004-05-17 08:06:18 -0700, Dan Kegel <dank@kegel.com>
wrote in message <40A8D4EA.4090204@kegel.com>:
> Jan-Benedict Glaw wrote:
> >>    * assume canadian cross if BUILD and HOST are set by caller (untested)

While we are at it... That bust have been quite a strong beer last
night:)

--- crosstool.sh~bugfixes	2004-05-17 18:19:19.000000000 +0200
+++ crosstool.sh	2004-05-17 18:24:55.000000000 +0200
@@ -59,7 +59,7 @@
 test -z "${CXXFLAGS}"  || abort "Don't set CXXFLAGS, it screws up the build"
 
 echo 'Did user specify BUILD and HOST in environment to force canadian cross?'
-if test "$BUILD" != "" && test $HOST" != ""; then
+if test "$BUILD" != "" && test "$HOST" != ""; then
 	echo "It's a canadian cross, so we'll set --build for gcc and binutils"
 	CANADIAN_BUILD="--build=$BUILD"
 else
@@ -114,7 +114,7 @@
 
 # If user isn't doing a canadian cross, add the target compiler's bin to
 # the path, so we can use the compiler we build to build glibc etc.
-if "$CANADIAN_BUILD" = ""; then
+if test "$CANADIAN_BUILD" = ""; then
 	PATH="${PREFIX}/bin:${PATH}"
 	export PATH
 fi
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]