This is the mail archive of the cygwin mailing list for the Cygwin project.


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: Problems between cygwin and window's cmd about making GCC (options.h)


On 19 April 2006 10:06, ??? wrote:

> I must write a batch file to call a shell script in cygwin for making
> GCC toolchains for some purposes.
> After making binutils successfully, I make gcc-3.4.3 using my batch file...
> 
> My batch file:
> CLS
> @echo off
> set MAKE_MODE=UNIX
> sh ./test.sh
> test.sh:
> #!/bin/bash
> cd /cygdrive/c/toolchains/build-gcc
> sh ../gcc-3.4.3/configure --target=arm --srcdir=../gcc-3.4.3
> --prefix=/usr/local  --enable-languages="c"
> make
> make install
> 
> It's work fine (make success) when I directly run test.sh in cygwin,
> but there are some error as follow when I run my batch file to call
> test.sh.

  Well, the main difference is between a login and a non-login shell in this
case; this affects which startup files are run.  Does adding '-l' to the 'sh'
invocation in the batch file help any?


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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