Date: Sat, 14 Dec 2002 16:39:07 +0000 From: "Richard Dawe" Sender: rich AT phekda DOT freeserve DOT co DOT uk To: djgpp-workers AT delorie DOT com X-Mailer: Emacs 21.3.50 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6 Subject: Building tests with debug info using gcc 3.x [PATCH] Message-Id: Reply-To: djgpp-workers AT delorie DOT com Hello. Below is a patch to fix tests/makefile.inc to use the same djgpp{,-x}.djl as the build under src/makefile.inc: gcc 3.x one, if gcc 3.x is present, otherwise the one in $DJDIR. I'm not proposing to commit this, since I'm unclear which linker script we should be using: CVS or the one supplied with gcc? Thanks, bye, Rich =] Index: tests/makefile.inc =================================================================== RCS file: /cvs/djgpp/djgpp/tests/makefile.inc,v retrieving revision 1.3 diff -p -u -3 -r1.3 makefile.inc --- tests/makefile.inc 1 Feb 2001 19:38:30 -0000 1.3 +++ tests/makefile.inc 14 Dec 2002 16:36:28 -0000 @@ -1,3 +1,4 @@ +# Copyright (C) 2002 DJ Delorie, see COPYING.DJ for details # Copyright (C) 2001 DJ Delorie, see COPYING.DJ for details include $(TOP)/../makefile.def @@ -41,7 +42,10 @@ export LIBGCCA 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