summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
Diffstat (limited to 'scons')
-rw-r--r--scons/gallium.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index 7374cf58d3..36f1831af8 100644
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -114,6 +114,9 @@ def pkg_config_modules(env, name, modules):
if not env.Detect('pkg-config'):
return
+ if subprocess.call(["pkg-config", "--exists", ' '.join(modules)]) != 0:
+ return
+
# Put -I and -L flags directly into the environment, as these don't affect
# the compilation of targets that do not use them
try: