Merge pull request #7044 from radarhere/ldconfig

This commit is contained in:
Hugo van Kemenade 2023-03-30 17:38:15 +03:00 committed by GitHub
commit d850ac7a58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -166,14 +166,14 @@ def _find_library_dirs_ldconfig():
# Assuming GLIBC's ldconfig (with option -p)
# Alpine Linux uses musl that can't print cache
args = ["/sbin/ldconfig", "-p"]
args = ["ldconfig", "-p"]
expr = rf".*\({abi_type}.*\) => (.*)"
env = dict(os.environ)
env["LC_ALL"] = "C"
env["LANG"] = "C"
elif sys.platform.startswith("freebsd"):
args = ["/sbin/ldconfig", "-r"]
args = ["ldconfig", "-r"]
expr = r".* => (.*)"
env = {}