On Tue, 10 Jan 2023 09:57:19 GMT, David <d...@openjdk.org> wrote: > 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)
This pull request has now been integrated. Changeset: 937ba1ca Author: david <davidgiga1...@gmail.com> Committer: Alexey Semenyuk <asemen...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/937ba1cadbe1e8663ad5663e5a2048b21dc63527 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod 8300111: Add rpath for common lib locations for jpackageapplauncher Reviewed-by: ihse, asemenyuk, almatvee ------------- PR: https://git.openjdk.org/jdk/pull/11922