summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scons/gallium.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index 7374cf58d3b..36f1831af89 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: