@@ -162,17 +162,17 @@ def main():
162162
163163 if brew_prefix :
164164 # pkg-config files can live in lib/pkgconfig or opt/<pkg>/lib/pkgconfig
165- pkgconfig_paths = [f"{ brew_prefix } /lib/pkgconfig" , f"{ brew_prefix } /opt/lzo/lib/pkgconfig" ]
165+ # pkgconfig_paths = [f"{brew_prefix}/lib/pkgconfig", f"{brew_prefix}/opt/lzo/lib/pkgconfig"]
166166 # merge with any existing PKG_CONFIG_PATH
167- existing_pc = env_vars .get ("PKG_CONFIG_PATH" , "" )
168- merged_pc = ":" .join ([p for p in pkgconfig_paths if p ]) + (f":{ existing_pc } " if existing_pc else "" )
169- env_vars ["PKG_CONFIG_PATH" ] = merged_pc
167+ # existing_pc = env_vars.get("PKG_CONFIG_PATH", "")
168+ # merged_pc = ":".join([p for p in pkgconfig_paths if p]) + (f":{existing_pc}" if existing_pc else "")
169+ # env_vars["PKG_CONFIG_PATH"] = merged_pc
170170
171171 # Ensure compiler & linker flags include brew include/lib
172- # existing_cflags = env_vars.get("CFLAGS", "")
173- # existing_ldflags = env_vars.get("LDFLAGS", "")
174- # env_vars["CFLAGS"] = f"-I{brew_prefix}/include {existing_cflags}".strip()
175- # env_vars["LDFLAGS"] = f"-L{brew_prefix}/lib {existing_ldflags}".strip()
172+ existing_cflags = env_vars .get ("CFLAGS" , "" )
173+ existing_ldflags = env_vars .get ("LDFLAGS" , "" )
174+ env_vars ["CFLAGS" ] = f"-I{ brew_prefix } /include { existing_cflags } " .strip ()
175+ env_vars ["LDFLAGS" ] = f"-L{ brew_prefix } /lib { existing_ldflags } " .strip ()
176176
177177 # Debugging: log environment keys relevant to detection
178178 # logger.info(f"env vars for meson: {env_vars}")
0 commit comments