Skip to contentSkip to conversation

Globally disable PKG_CONFIG_PATH

PATCH RESEND New Arnout Vandecappelle (Essensium/Mind) 2 participants 2 messages Jun 30, 2012 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 Globally disable PKG_CONFIG_PATH

If PKG_CONFIG_PATH is set in the environment, it allows pkg-config to look for libraries outside of the buildroot tree. This is a problem both for host and target builds. To avoid it, globally set an empty PKG_CONFIG_PATH in the environment.

---
 Makefile |    3 +++
 1 file changed, 3 insertions(+)
Makefile +3 -0
index 7a66897..bcbe9fc 100644
@@ -165,6 +165,9 @@ HOSTNM:=$(shell which $(HOSTNM) || type -p $(HOSTNM) || echo nm)
 export HOSTAR HOSTAS HOSTCC HOSTCXX HOSTFC HOSTLD
 export HOSTCC_NOCCACHE HOSTCXX_NOCCACHE
 
+# Make sure pkg-config doesn't look outside the buildroot tree
+unexport PKG_CONFIG_PATH
+
 # bash prints the name of the directory on 'cd <dir>' if CDPATH is
 # set, so unset it here to not cause problems. Notice that the export
 # line doesn't affect the environment of $(shell ..) calls, so
Signature · 1 line
tg: (dc1d20a..) t/pkg-config-path (depends on: master)
#1 lore raw

PATCH RESEND 1/1 Globally disable PKG_CONFIG_PATH

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Arnout" == Arnout Vandecappelle (Essensium/Mind) <[email protected]> writes:

Arnout> If PKG_CONFIG_PATH is set in the environment, it allows pkg-config to Arnout> look for libraries outside of the buildroot tree. This is a problem Arnout> both for host and target builds. To avoid it, globally set an empty Arnout> PKG_CONFIG_PATH in the environment.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard