<div dir="ltr">Hi Alexey,<div><br></div><div>great! I've created the PR: <a href="https://github.com/openjdk/jdk/pull/11922">https://github.com/openjdk/jdk/pull/11922</a></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br><div>Best regards,</div><div>David Schumann<br></div><div><br></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mo., 9. Jan. 2023 um 23:57 Uhr schrieb Alexey Semenyuk <<a href="mailto:alexey.semenyuk@oracle.com">alexey.semenyuk@oracle.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi David,<br>
<br>
The request to adjust osx linker command lines looks reasonable. Please <br>
go ahead with a pull request.<br>
<br>
- Alexey<br>
<br>
On 1/9/2023 1:21 AM, David Holmes wrote:<br>
> On 8/01/2023 8:39 pm, David Schumann wrote:<br>
>> Hello,<br>
>><br>
>> I'm not 100% sure if this list is the correct one for this topic, <br>
>> feel free to redirect me.<br>
><br>
> core-libs-dev - cc'd<br>
><br>
> Cheers,<br>
> David<br>
><br>
>> Currently the jpackageapplauncher binary gets linked without the <br>
>> "-headerpad_max_install_names" argument on osx. This prevents a user <br>
>> from using the install_name_tool with the launcher binary.<br>
>> This means that it's currently not possible to include dylibs in the <br>
>> application bundle.<br>
>><br>
>> To provide a bit more context:<br>
>> I'm using jpackage to build an app bundle. The java application <br>
>> itself uses external native libraries, which internally use dlopen to <br>
>> reference other libs. Normaly one would include the other libs in the <br>
>> app bundle, and use the install_name_tool to tell the dynamic linker <br>
>> which paths to load the libraries from. However since the launcher <br>
>> binary doesn't get linked with the correct arguments, this isn't <br>
>> possible.<br>
>><br>
>> I wanted to discuss this change, and it it makes sense for me to open <br>
>> a pull request for it.<br>
>> The change would be in <br>
>> <a href="https://github.com/openjdk/jdk/blob/master/make/modules/jdk.jpackage/Lib.gmk#L76" rel="noreferrer" target="_blank">https://github.com/openjdk/jdk/blob/master/make/modules/jdk.jpackage/Lib.gmk#L76</a> <br>
>> <<a href="https://github.com/openjdk/jdk/blob/master/make/modules/jdk.jpackage/Lib.gmk#L76" rel="noreferrer" target="_blank">https://github.com/openjdk/jdk/blob/master/make/modules/jdk.jpackage/Lib.gmk#L76</a>> <br>
>><br>
>><br>
>> Best Regards,<br>
>> David Schumann<br>
>><br>
<br>
</blockquote></div>