Is it possible to get a statically-linked build out of this system? (I am trying to build my external using Nix on MacOS – which works – but have the result be redistributable to non-Nix MacOS.)
Currently I see:
$ otool -L /path/to/externals/myExternal~.mxo/Contents/MacOS/myExternal~
/path/to/externals/myExternal~.mxo/Contents/MacOS/myExternal~ :
@executable_path/../Frameworks/JitterAPI.framework/Versions/A/JitterAPI (compatibility version 1.0.0, current version 1.0.0)
/nix/store/1w5vfi5jvgkw44ahy8w3vdn6icmqfmxm-libc++-7.1.0/lib/libc++.1.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/nix/store/7c9ilw9zna1m3dlkd4bp80czya62px0s-Libsystem-osx-10.12.6/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)
The libc++ and libSystem entries are clearly linker-non-grata.
I am quite new to cmake, so perhaps this is obvious, but I've tried a few things I can think of, to no success...
Is it possible to get a statically-linked build out of this system? (I am trying to build my external using Nix on MacOS – which works – but have the result be redistributable to non-Nix MacOS.)
Currently I see:
The
libc++
andlibSystem
entries are clearly linker-non-grata.I am quite new to cmake, so perhaps this is obvious, but I've tried a few things I can think of, to no success...