delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/12/16/12:18:27

Sender: rich AT phekda DOT freeserve DOT co DOT uk
Message-ID: <3DFDC5D6.C645C5E6@phekda.freeserve.co.uk>
Date: Mon, 16 Dec 2002 12:23:50 +0000
From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586)
X-Accept-Language: de,fr
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: Building tests with debug info using gcc 3.x [PATCH]
References: <200212160558 DOT GAA28167 AT lws256 DOT lu DOT erisoft DOT se>
Reply-To: djgpp-workers AT delorie DOT com

Hello.

Martin Stromberg wrote:
> 
> > 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)
> 
> Should it really be "ifeq" here?

It looks confusing, but if you try -print-file-name on some filename that
doesn't exist, then it echoes it back at you:

    bash-2.04$ gcc -print-file-name=i_am_pretty_sure_this_doesnt_exist
    i_am_pretty_sure_this_doesnt_exist
 
> >  DJGPP_DJL := $(shell $(CROSS_GCC) $(GCC_OPT) -print-file-name=djgpp.djl)
> > +endif
> >  DJGPP_DJL := $(subst \,/,$(DJGPP_DJL))
> >  export DJGPP_DJL
> >  endif

Bye, Rich =]

-- 
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]

- Raw text -


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