From 4ff6ac09c2a951995605a23965a62484ea3bf2ed Mon Sep 17 00:00:00 2001 From: Michael Cho Date: Tue, 31 Dec 2024 20:15:36 -0500 Subject: [PATCH] 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. --- Library/Homebrew/extend/ENV/super.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb index c21bd3ce84..e0cf61bfbb 100644 --- a/Library/Homebrew/extend/ENV/super.rb +++ b/Library/Homebrew/extend/ENV/super.rb @@ -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