Backticks (`) in makefile

Tapu anirudha@cmcltd.com
Sun Jun 22 14:24:00 GMT 2003


Hi
Is libstdc++-V3 compatible with gcc 2.95.3?
And also which is the latest stable version of gcc?

Thanks


"Don't scream for the Change. Become the Change."

.......................................................
Anirudha Sarangi
Real Time Systems Group
R&D, CMC Centre
........................................................
----- Original Message -----
From: "Sisyphus" <kalinabears@iinet.net.au>
To: "Ben Davis" <bnd25@cam.ac.uk>; "gcc" <gcc-help@gcc.gnu.org>
Sent: Saturday, June 21, 2003 12:17 AM
Subject: Re: Backticks (`) in makefile


>
> ----- Original Message -----
> From: "Ben Davis" <bnd25@cam.ac.uk>
> To: "Sisyphus" <kalinabears@iinet.net.au>; "gcc" <gcc-help@gcc.gnu.org>
> Sent: Friday, June 20, 2003 12:08 PM
> Subject: Re: Backticks (`) in makefile
>
>
> > The backticks aren't interpreted by the makefile, but are passed to the
> shell.
> > A Bourne-style shell like bash, when confronted with the following:
> >
> >    gcc ... `cat blah`
> >
> > will execute 'cat blah', capture its stdout and place the contents on
the
> > command line. So if 'blah' contains:
> >
> >    foo.o
> >    bar.o
> >
> > then the command will become:
> >
> >    gcc ... foo.o blah.o
> >
> > Hope that helps :)
> >
> > Ben
> >
> >
>
> Indeed it does.
> This means that if 'blah' is empty (as it is in my case) I should be able
to
> simply delete `cat blah` and it will work as intended.
> There is still a question mark over whether my 'blah' *should* be empty -
> I'll have to look into that.
>
> Thanks Ben.
>
> Cheers,
> Rob
>
>




More information about the Gcc-help mailing list