Mail Archives: djgpp-workers/2002/12/14/11:49:25
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
- Raw text -