jpackageapplauncher linker arguments for osx
David Schumann
david at dev-core.org
Tue Jan 10 09:59:02 UTC 2023
Hi Alexey,
great! I've created the PR: https://github.com/openjdk/jdk/pull/11922
Best regards,
David Schumann
Am Mo., 9. Jan. 2023 um 23:57 Uhr schrieb Alexey Semenyuk <
alexey.semenyuk at oracle.com>:
> Hi David,
>
> The request to adjust osx linker command lines looks reasonable. Please
> go ahead with a pull request.
>
> - Alexey
>
> On 1/9/2023 1:21 AM, David Holmes wrote:
> > On 8/01/2023 8:39 pm, David Schumann wrote:
> >> Hello,
> >>
> >> I'm not 100% sure if this list is the correct one for this topic,
> >> feel free to redirect me.
> >
> > core-libs-dev - cc'd
> >
> > Cheers,
> > David
> >
> >> Currently the jpackageapplauncher binary gets linked without the
> >> "-headerpad_max_install_names" argument on osx. This prevents a user
> >> from using the install_name_tool with the launcher binary.
> >> This means that it's currently not possible to include dylibs in the
> >> application bundle.
> >>
> >> To provide a bit more context:
> >> I'm using jpackage to build an app bundle. The java application
> >> itself uses external native libraries, which internally use dlopen to
> >> reference other libs. Normaly one would include the other libs in the
> >> app bundle, and use the install_name_tool to tell the dynamic linker
> >> which paths to load the libraries from. However since the launcher
> >> binary doesn't get linked with the correct arguments, this isn't
> >> possible.
> >>
> >> I wanted to discuss this change, and it it makes sense for me to open
> >> a pull request for it.
> >> The change would be in
> >>
> https://github.com/openjdk/jdk/blob/master/make/modules/jdk.jpackage/Lib.gmk#L76
> >> <
> https://github.com/openjdk/jdk/blob/master/make/modules/jdk.jpackage/Lib.gmk#L76>
>
> >>
> >>
> >> Best Regards,
> >> David Schumann
> >>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20230110/63a5fd54/attachment-0001.htm>
More information about the core-libs-dev
mailing list