Date: Tue, 14 Jul 1998 10:12:24 +0200 (WET) From: Andris Pavenis To: DJ Delorie cc: djgpp-workers AT delorie DOT com Subject: Re: Small patch for DJLSR202-980712 (src/makefile.inc) In-Reply-To: <199807131911.PAA12001@delorie.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Mon, 13 Jul 1998, DJ Delorie wrote: > > Would this work instead? > > ifeq ($(LIBGCCA),) > LIBGCCA := $(shell $(CROSS_GCC) -print-file-name=libgcc.a) > LIBGCCA := $(subst \\,/,$(LIBGCCA)) > endif > > It avoids a whole program this way. > Unfortunatelly this is not working. I had to use only one slash to get it working (both from command.com : LIBGCCA := $(shell gcc -print-file-name=libgcc.a) LIBGCCA := $(subst \,/,$(LIBGCCA)) Slightly weird but what to do. Maybe sometimes I should think how to avoid backslashes in output of gcc also here but not only in dependencies outputted by cpp. Andris PS. Here is an example of simple makefile that tests it: -------------------------------------------------------- LIBGCCA := $(shell gcc -print-file-name=libgcc.a) LIBGCCA := $(subst \,/,$(LIBGCCA)) export LIBGCCA all: ls -l $(LIBGCCA) nm --extern-only $(LIBGCCA) | less