This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Problems between cygwin and window's cmd about making GCC (options.h)
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Wed, 19 Apr 2006 10:25:14 +0100
- Subject: 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/