diff --git a/subprojects/gstreamer/docs/gst-plugins-doc-cache-generator.py b/subprojects/gstreamer/docs/gst-plugins-doc-cache-generator.py index 9eb79c4569..75f62a0bca 100755 --- a/subprojects/gstreamer/docs/gst-plugins-doc-cache-generator.py +++ b/subprojects/gstreamer/docs/gst-plugins-doc-cache-generator.py @@ -22,7 +22,6 @@ import os import sys import re import subprocess -import tempfile from pathlib import Path as P from argparse import ArgumentParser @@ -51,7 +50,7 @@ PROJECT_NAME_MAP = { def get_c_flags(dep, buildroot, uninstalled=True): - env = {} + env = os.environ.copy() if uninstalled: env['PKG_CONFIG_PATH'] = os.path.join(buildroot, 'meson-uninstalled') res = subprocess.run(['pkg-config', '--cflags', dep], env=env, capture_output=True)