HashLink: when building hdlls, use -install_name on macOS

This more closely matches official HashLink binaries, and ensures that the hdlls can be found next to a HL/C executable
This commit is contained in:
Josh Tynjala
2023-10-18 15:33:32 -07:00
parent 0528e3996f
commit 21e8e619c3
2 changed files with 11 additions and 0 deletions

View File

@@ -372,6 +372,8 @@
<ext value=".hdll" />
<files id="ssl" />
<vflag name="-install_name" value="@executable_path/ssl.hdll" if="mac"/>
<lib name="-lhl" unless="windows" />
<lib name="-L${OUTPUT_DIR}/${BINDIR}" unless="windows" />
<lib name="-libpath:${OUTPUT_DIR}/${BINDIR}" if="windows" />
@@ -397,6 +399,8 @@
<ext value=".hdll" />
<files id="mysql" />
<vflag name="-install_name" value="@executable_path/mysql.hdll" if="mac"/>
<lib name="-lhl" unless="windows" />
<lib name="-L${OUTPUT_DIR}/${BINDIR}" unless="windows" />
<lib name="-libpath:${OUTPUT_DIR}/${BINDIR}" if="windows" />
@@ -409,6 +413,8 @@
<ext value=".hdll" />
<files id="fmt" />
<vflag name="-install_name" value="@executable_path/fmt.hdll" if="mac"/>
<lib name="-L/usr/local/lib" if="mac" />
<lib name="-L/usr/local/opt/libjpeg-turbo/lib" if="mac" />
<lib name="-L/usr/local/opt/jpeg-turbo/lib" if="mac" />
@@ -434,6 +440,8 @@
<ext value=".hdll" />
<files id="ui" />
<vflag name="-install_name" value="@executable_path/ui.hdll" if="mac"/>
<lib name="-lhl" unless="windows" />
<lib name="-L${OUTPUT_DIR}/${BINDIR}" unless="windows" />
<section if="windows">
@@ -450,6 +458,8 @@
<ext value=".hdll" />
<files id="uv" />
<vflag name="-install_name" value="@executable_path/uv.hdll" if="mac"/>
<lib name="-L/usr/local/lib" if="mac" />
<lib name="-luv" unless="windows" />