delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
From: | "Dave Korn" <dave DOT korn AT artimi DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | RE: Problems between cygwin and window's cmd about making GCC (options.h) |
Date: | Wed, 19 Apr 2006 10:25:14 +0100 |
Message-ID: | <009e01c66393$2ba87340$a501a8c0@CAM.ARTIMI.COM> |
MIME-Version: | 1.0 |
X-Mailer: | Microsoft Office Outlook 11 |
In-Reply-To: | <b7cd5e870604190206g503c6196m3491dfdf0055f44c@mail.gmail.com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |