Date: Fri, 24 Aug 2001 11:10:34 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: pavenis AT lanet DOT lv Message-Id: <2950-Fri24Aug2001111033+0300-eliz@is.elta.co.il> X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.9 CC: djgpp-workers AT delorie DOT com In-reply-to: (message from Andris Pavenis on Thu, 23 Aug 2001 20:30:48 +0300 (WET)) Subject: Re: gcc-3.0.1 and Win2k References: Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Thu, 23 Aug 2001 20:30:48 +0300 (WET) > From: Andris Pavenis > > > > Building programs seems to work just fine, but I hit a problem with > > building the CVS library. The problem is that we have this in > > src/makefile.inc: > > > > DJGPP_DJL := $(shell $(CROSS_GCC) $(GCC_OPT) -print-file-name=djgpp.djl) > > > > This asks the compiler for the full name of the linker script, but > > since the script is called djgpp.djl, this command cannot pick > > djgpp-x.djl which comes with the GCC distribution. Okay, how about the following change? As they say, ``it works for me''. Can this make any trouble for cross-compiled environments? Index: src/makefile.inc =================================================================== RCS file: /cvs/djgpp/djgpp/src/makefile.inc,v retrieving revision 1.6 diff -u -r1.6 makefile.inc --- src/makefile.inc 2001/06/12 13:03:15 1.6 +++ src/makefile.inc 2001/08/24 08:09:43 @@ -112,7 +112,10 @@ endif ifeq ($(DJGPP_DJL),) +DJGPP_DJL := $(shell $(CROSS_GCC) $(GCC_OPT) -print-file-name=djgpp-x.djl) +ifeq ($(DJGPP_DJL),djgpp-x.djl) DJGPP_DJL := $(shell $(CROSS_GCC) $(GCC_OPT) -print-file-name=djgpp.djl) +endif DJGPP_DJL := $(subst \,/,$(DJGPP_DJL)) export DJGPP_DJL endif