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: crosstool.sh: Brown paper-bag bug


On Mon, 2004-05-17 18:27:28 +0200, Jan-Benedict Glaw <jbglaw@lug-owl.de>
wrote in message <20040517162728.GX1912@lug-owl.de>:
> 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

You catched this one, ...

> @@ -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

But isn't this needed, too?

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]