We currently have a number of formulae that use CMAKE_INSTALL_RPATH set to lib or opt_lib. This breaks relocatability on macOS. For example, see 52203dd, and its parent, 068fcb9.
Instead, CMAKE_INSTALL_RPATH should be set to @loader_path/../lib, but only on macOS, as @loader_path is macOS-specific.
Example PRs: #75450, #75449, #75457.
Formulae that use CMAKE_INSTALL_RPATH:
I imagine I'll get through this list eventually, but help would be appreciated.
Bonus, for settings CMAKE_EXE_LINKER_FLAGS:
We currently have a number of formulae that use
CMAKE_INSTALL_RPATHset toliboropt_lib. This breaks relocatability on macOS. For example, see 52203dd, and its parent, 068fcb9.Instead,
CMAKE_INSTALL_RPATHshould be set to@loader_path/../lib, but only on macOS, as@loader_pathis macOS-specific.Example PRs: #75450, #75449, #75457.
Formulae that use
CMAKE_INSTALL_RPATH:#rpath#77703#rpath#77704#rpath#78095#rpath#77715#rpath#78098#rpath#78116#rpath#78118#rpath#78205#rpath#78214#rpath#78218#rpath#78220#rpath#78221#rpath#78222I imagine I'll get through this list eventually, but help would be appreciated.
Bonus, for settings
CMAKE_EXE_LINKER_FLAGS: