It doesn't work on Linux right now: [SR-648] swift package manager should have the option to produce statically linked binaries · Issue #5432 · apple/swift-package-manager · GitHub