delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/08/24/04:11:50

Date: Fri, 24 Aug 2001 11:10:34 +0300
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
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: <Pine.A41.4.05.10108232014050.34078-100000@ieva06.lanet.lv>
(message from Andris Pavenis on Thu, 23 Aug 2001 20:30:48 +0300 (WET))
Subject: Re: gcc-3.0.1 and Win2k
References: <Pine DOT A41 DOT 4 DOT 05 DOT 10108232014050 DOT 34078-100000 AT ieva06 DOT lanet DOT lv>
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

> Date: Thu, 23 Aug 2001 20:30:48 +0300 (WET)
> From: Andris Pavenis <pavenis AT lanet DOT lv>
> > 
> > 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019