Mail Archives: djgpp-workers/2001/08/24/04:11:50
> 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 -