On Sun, Feb 26, 2023 at 7:36 PM Jeff Davis <pg...@j-davis.com> wrote: > > On Sun, 2023-02-26 at 09:57 -0800, Andres Freund wrote: > > If you tell meson where to find the pkg-config file in those > > directories it'd > > also work. -Dpkg_config_path=... > > Setup is able to find it, which is good, but it seems like it's not > adding it to RPATH so it's not working.
For my custom OpenSSL setups using -Dpkg_config_path, meson initially adds the correct RPATH during build, then accidentally(?) strips it during the `ninja install` step. This has been complained about [1], and it seems like maybe they intended to fix it back in 0.55, but I'm not convinced they did. :) I work around it by manually setting -Dextra_lib_dirs. I just tried doing that with ICU 72, and it worked without a patch. Hopefully that helps some? --Jacob [1] https://github.com/mesonbuild/meson/issues/6541