Closed tobil4sk closed 4 months ago
I'm not too sure where to do this, I guess maybe here after copying it?
Yeah, in the if (targetType == "neko")
section below seems good to me:
I put similar install_name_tool
commands for HashLink in the else if (targetType == "hl")
section after that in the 8.2.0-Dev branch.
This is where arm64 homebrew installs
libneko.dylib
. However, it may still be in/usr/local/lib
if installed via the haxe .pkg installer, so we add both. See the discussion in: https://github.com/openfl/lime/commit/c70ec9fbe02b8d98f6562ee7a403f812549ea387.Closes #1750.
We should use
install_name_tool -delete-rpath [path]
to remove rpaths when copyinglime.ndll
into a cpp build, because we only need the rpath for neko builds (wherelibneko.dylib
is going to be loaded), and having an unnecessary rpath is a security concern. I'm not too sure where to do this, I guess maybe here after copying it? @joshtynjala https://github.com/openfl/lime/blob/c70ec9fbe02b8d98f6562ee7a403f812549ea387/tools/platforms/MacPlatform.hx#L175-L178.