extend/ENV/super: always set PKG_CONFIG_LIBDIR

Setting PKG_CONFIG_LIBDIR overrides compiled default. This helps reduce
opportunistic linkage when pkg-config call finds modules installed on
system but not included in a formula's dependency tree.
This commit is contained in:
Michael Cho 2024-12-31 20:15:36 -05:00
parent c723e2fde3
commit 4ff6ac09c2
No known key found for this signature in database
GPG Key ID: 55E85E28A7CD1E85

View File

@ -65,7 +65,7 @@ module Superenv
self["RUSTFLAGS"] = Hardware.rustflags_target_cpu(effective_arch)
self["PATH"] = determine_path
self["PKG_CONFIG_PATH"] = determine_pkg_config_path
self["PKG_CONFIG_LIBDIR"] = determine_pkg_config_libdir
self["PKG_CONFIG_LIBDIR"] = determine_pkg_config_libdir || ""
self["HOMEBREW_CCCFG"] = determine_cccfg
self["HOMEBREW_OPTIMIZATION_LEVEL"] = "Os"
self["HOMEBREW_BREW_FILE"] = HOMEBREW_BREW_FILE.to_s