svn commit: r282260 - head

Garrett Cooper yaneurabeya at gmail.com
Thu Apr 30 00:44:26 UTC 2015


On Apr 29, 2015, at 17:41, Sean Bruno <sbruno at ignoranthack.me> wrote:

> Signed PGP part
> On 04/29/15 17:39, Garrett Cooper wrote:
> > On Apr 29, 2015, at 17:33, Sean Bruno <sbruno at ignoranthack.me>
> > wrote:
> >
> >> Signed PGP part On 04/29/15 17:29, Garrett Cooper wrote:
> >>> This $PATH doesn’t get used though…
> >>
> >> What?  As far as I can tell it does.  Did I miss something
> >> obvious? Because if the PATH wasn't working, gperf wouldn't be
> >> found and the builds for a native-xtools target would fail for
> >> the gcc ARCH's
> >
> > "PATH=${PATH}:${OBJTREE}/gperf_for_gcc/usr/bin” is a standalone
> > line, without a continuation, so the value should have been
> > executed in a separate shell instance and doesn’t get inherited in
> > the environment following it. Here’s an example:
> >
> > $ make -f r282260.mk A=B echo A is: $A A is: $ cat r282260.mk all:
> > A=B echo A is: $$A $
> >
> > Cheers!
> >
> 
> Like I said, what am I missing if my broken Make-foo can't possibly
> work.  Isn't PATH global to the Makefile/ENV or something in this contex
> t?

Not unless it’s operating in a mode I’m not specifying…

all:
	PATH=${PATH}:A
	echo path is: ${PATH}
	echo path is: $$PATH

echo path is: /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/ngie/bin
path is: /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/ngie/bin
echo path is: $PATH
path is: /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/ngie/bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20150429/9c60f1cc/attachment.sig>


More information about the svn-src-all mailing list