RFR: 8300111: Add rpath for common lib locations for jpackageapplauncher
David
duke at openjdk.org
Fri Jan 13 11:19:20 UTC 2023
This patch adds the `-headerpad_max_install_names` linker argument to the build of the `jpackageapplauncher` binary (osx only)
Adding this argument allows the user to use the `install_name_tool` to add search paths for the dynamic linker to the launcher binary. This is required for certain use cases where a native library loads other dynamic native libraries via `dlopen`.
The change has been successfully tested on osx on aarch64:
make jdk.jpackage
install_name_tool -add_rpath @executable_path/../Frameworks/ jpackageapplauncher
otool -l jpackageapplauncher
Load command 19
cmd LC_RPATH
cmdsize 48
path @executable_path/../Frameworks/ (offset 12)
-------------
Commit messages:
- 9074650: Add rpath for common lib locations for jpackageapplauncher
Changes: https://git.openjdk.org/jdk/pull/11922/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11922&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8300111
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/11922.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/11922/head:pull/11922
PR: https://git.openjdk.org/jdk/pull/11922
More information about the build-dev
mailing list