[swift-users] statically link the standard library on Linux
max.howell at apple.com
Wed Feb 17 13:37:17 CST 2016
We have a ticket open to implement static linking of swift libs.
If anyone on the Swift team knows how to do this and can comment here then I’m sure we can get it implemented pretty quickly.
> On Feb 13, 2016, at 7:54 PM, Drew Crawford via swift-users <swift-users at swift.org> wrote:
> Whenever I update the installed Linux snapshot, my binaries break, with errors of the form:
> [programname]: symbol lookup error: [programname]: undefined symbol: _TFOs7Processau9argumentsGSaSS_
> I assume this is the standard library symbol Process.arguments (which is used in my program).
> I guess this is because the standard library is not statically linked/embedded in this executable. This happens by default on OSX, but I guess might not on Linux.
> Is that a bug?
> Is there a way to force statically link the standard library on Linux, so my binaries work without a recompile each new snapshot?
> swift-users mailing list
> swift-users at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-users