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:
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user