[swift-users] statically link the standard library on Linux

Drew Crawford drew at sealedabstract.com
Sat Feb 13 21:54:26 CST 2016


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?




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160213/3ea096b1/attachment.html>


More information about the swift-users mailing list