Skip to content

[SR-648] swift package manager should have the option to produce statically linked binaries #5432

Open
@swift-ci

Description

@swift-ci
Previous ID SR-648
Radar rdar://problem/32618121
Original Reporter jaybuff (JIRA User)
Type Improvement
Additional Detail from JIRA
Votes 34
Component/s Package Manager
Labels Improvement
Assignee None
Priority Medium

md5: a97136565bbf5fd9b15515ab552f61b8

is blocked by:

  • SR-2280 swiftc -static-stdlib option fails on Ubuntu 14.04 & 15.10

is duplicated by:

  • SR-727 (emscripten support) Compile Swift code with statically linked stdlib
  • SR-10624 SwiftPM doesn't hand --swift-static-stdlib through

relates to:

  • SR-2280 swiftc -static-stdlib option fails on Ubuntu 14.04 & 15.10
  • SR-10625 tests for -static-*
  • SR-730 Flag to statically link Swift standard library

Issue Description:

When I do swift build for a simple hello world swift program it ldd tells me that it is linked against libstdc++.so.6, libswiftCore.so and other .so files. I would like to ask swift build to produce a single file that is not dynamically linked against any shared objects.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions