Why not say $(shell PATH:=$(PATH) ; pkgconfig ..,)
? Regards, Tim On 17 Dec 2015 4:46 a.m., "Cristian Morales Vega" <crist...@samknows.com> wrote: > When using this Makefile > > ------------ > export PATH:=la:$(PATH) > > $(info $(shell echo $$PATH)) > > all: > @echo $$PATH > ------------ > > The output is > $ make > > /usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin > > la:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin > > The PATH is not being exported to the shell from $(shell), but it is > to the shell used to run the rules. > > This is being a problem for me because I am trying to use $(shell > pkg-config --cflags <pkg>) with pkg-config from the OpenWRT > (https://openwrt.org/) toolchain, which is actually a script calling > pkg-config.real... in the PATH from OpenWRT. > > 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? > > Thanks. > > _______________________________________________ > Help-make mailing list > Help-make@gnu.org > https://lists.gnu.org/mailman/listinfo/help-make > _______________________________________________ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make