summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMCApollo <mcapollo@protonmail.com>2020-06-23 13:46:33 -1000
committerSam Bingner <sam@bingner.com>2020-07-15 23:48:21 -1000
commit790eaddc7eea22b25f22ce92603e3974fb88d409 (patch)
tree9089885fc5c24dc7040c293cc00e763a7fe4d821
parent189ca91ff4eaa67e41dce7665fb6fe16d7929f88 (diff)
Node: Update make.sh
TODO: Fix xcode_emu.py and fix during compile time.
-rw-r--r--data/nodejs/make.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/data/nodejs/make.sh b/data/nodejs/make.sh
index db7e1c7e4..f7f4c4838 100644
--- a/data/nodejs/make.sh
+++ b/data/nodejs/make.sh
@@ -39,8 +39,12 @@ done
popd
ldid -S"${PKG_DATA}/node.xml" "${PKG_DEST}/usr/bin/node"
-export INSTALL_NAME_TOOL="${PKG_TARG}-install_name_tool"
+INSTALL_NAME_TOOL="${PKG_TARG}-install_name_tool"
test command -v ${INSTALL_NAME_TOOL} &>/dev/null || \
export INSTALL_NAME_TOOL="install_name_tool"
+INSTALL_ID=$(otool -L ${PKG_DEST}/usr/bin/node | grep -oE '/.*/libnode.*dylib')
LIBNODE="$(echo ${PKG_DEST}/usr/lib/libnode.*.dylib)"
+NODE="${PKG_DEST}/usr/bin/node"
${INSTALL_NAME_TOOL} "${LIBNODE}" -id "/usr/lib/${LIBNODE##*/}"
+${INSTALL_NAME_TOOL} "${NODE}" -change ${INSTALL_ID} "/usr/lib/${LIBNODE##*/}"
+