www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/07/14/03:14:30

Date: Tue, 14 Jul 1998 10:12:24 +0200 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
To: DJ Delorie <dj AT delorie DOT com>
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: <Pine.A32.3.91.980714095900.117120A-100000@ieva05.lanet.lv>
MIME-Version: 1.0


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



- Raw text -


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