On Thu, 2015-12-17 at 09:17 +0000, Cristian Morales Vega wrote:
> When using this Makefile
> 
> ------------
> export PATH:=la:$(PATH)
> 
> $(info $(shell echo $$PATH))
> 
> all:
>     @echo $$PATH
> ------------

> The PATH is not being exported to the shell from $(shell), but it is
> to the shell used to run the rules.

> I am using make 4.0, from Fedora 23. Is this a bug, or expected? If
> it's expected... any suggestion about how to solve my pkg-config
> problem?

I believe there's already a bug in Savannah about this.

However the workaround is straightforward:

    $(info $(shell PATH=$(PATH); echo $$PATH))

_______________________________________________
Help-make mailing list
Help-make@gnu.org
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to