This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: nested backticks in Makefile


On Tue, Mar 27, 2007 at 10:40:10PM -0400, DJ Delorie wrote:
> 
> > I only meant:
> > 
> > CROSS_SYSTEM_HEADER_DIR='$(shell echo "$(gcc_tooldir)/sys-include")'
> 
> I figured you meant that.  Can you think of an example that would
> benefit from this quoting?

$(gcc_tooldir) starts with $(libsubdir) starts with $(libdir) which
will come from $(prefix), so there's an unquoted $(prefix) there.

../gcc/configure --prefix=/usr/local/"where * am * i" will thus lead
to $(shell echo /usr/local/where * am * i/sys-include), which will
wildcard.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]