{"action":"created","issue":{"url":"https://api.github.com/repos/apple/swift/issues/1891","repository_url":"https://api.github.com/repos/apple/swift","labels_url":"https://api.github.com/repos/apple/swift/issues/1891/labels{/name}","comments_url":"https://api.github.com/repos/apple/swift/issues/1891/comments","events_url":"https://api.github.com/repos/apple/swift/issues/1891/events","html_url":"https://github.com/apple/swift/pull/1891","id":143777353,"number":1891,"title":"Implement -static-stdlib for Linux","user":{"login":"drewcrawford","id":183400,"avatar_url":"https://avatars.githubusercontent.com/u/183400?v=3","gravatar_id":"","url":"https://api.github.com/users/drewcrawford","html_url":"https://github.com/drewcrawford","followers_url":"https://api.github.com/users/drewcrawford/followers","following_url":"https://api.github.com/users/drewcrawford/following{/other_user}","gists_url":"https://api.github.com/users/drewcrawford/gists{/gist_id}","starred_url":"https://api.github.com/users/drewcrawford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewcrawford/subscriptions","organizations_url":"https://api.github.com/users/drewcrawford/orgs","repos_url":"https://api.github.com/users/drewcrawford/repos","events_url":"https://api.github.com/users/drewcrawford/events{/privacy}","received_events_url":"https://api.github.com/users/drewcrawford/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jrose-apple","id":15097531,"avatar_url":"https://avatars.githubusercontent.com/u/15097531?v=3","gravatar_id":"","url":"https://api.github.com/users/jrose-apple","html_url":"https://github.com/jrose-apple","followers_url":"https://api.github.com/users/jrose-apple/followers","following_url":"https://api.github.com/users/jrose-apple/following{/other_user}","gists_url":"https://api.github.com/users/jrose-apple/gists{/gist_id}","starred_url":"https://api.github.com/users/jrose-apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrose-apple/subscriptions","organizations_url":"https://api.github.com/users/jrose-apple/orgs","repos_url":"https://api.github.com/users/jrose-apple/repos","events_url":"https://api.github.com/users/jrose-apple/events{/privacy}","received_events_url":"https://api.github.com/users/jrose-apple/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2016-03-27T05:15:20Z","updated_at":"2016-04-30T06:46:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apple/swift/pulls/1891","html_url":"https://github.com/apple/swift/pull/1891","diff_url":"https://github.com/apple/swift/pull/1891.diff","patch_url":"https://github.com/apple/swift/pull/1891.patch"},"body":"<!-- Please complete this template before creating pull request. -->\r\n#### What's in this pull request?\r\n\r\nDepends on #1817, #1806.\r\n\r\nThis provides the Linux implementation of the `-static-stdlib` flag, allowing static linking of the standard library on Linux.\r\n\r\nThis follows the Darwin implementation in #1817 where possible, but there are a number of *very* dark corners in ELF that are involved in the implementation choices.  These are discussed in more detail in the commit message, but, very briefly, we have to take several unusual steps to make protocol conformance tables work in static executables.\r\n\r\nWe introduce separate test coverage for Linux, that (in addition to the protocol conformance tables check) uses `ldd` to verify the linkage on the final binary.\r\n\r\nSpecial thanks to @jckarter @hpux735 for their amazing help running down these dark corners.\r\n\r\n<!-- Description about pull request. -->\r\n\r\n#### Resolved bug number: ([SR-730](https://bugs.swift.org/browse/SR-730))\r\n* * * *\r\n\r\n<!-- This selection should only be completed by Swift admin -->\r\nBefore merging this pull request to apple/swift repository:\r\n- [x] Review and merge dependency #1806 \r\n- [ ] Review and merge dependency #1817 \r\n- [ ] Test pull request on Swift continuous integration.\r\n\r\n<details>\r\n  <summary>Triggering Swift CI</summary>\r\n\r\nThe swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:\r\n\r\n**Smoke Testing**\r\n\r\n        Platform     | Comment\r\n        ------------ | -------------\r\n        All supported platforms     | @swift-ci Please smoke test\r\n        OS X platform               | @swift-ci Please smoke test OS X platform\r\n        Linux platform              | @swift-ci Please smoke test Linux platform\r\n\r\n **Validation Testing**\r\n\r\n        Platform     | Comment\r\n        ------------ | -------------\r\n        All supported platforms     | @swift-ci Please test\r\n        OS X platform               | @swift-ci Please test OS X platform\r\n        Linux platform              | @swift-ci Please test Linux platform\r\n\r\nNote: Only members of the Apple organization can trigger swift-ci.\r\n</details>\r\n<!-- Thank you for your contribution to Swift! -->"},"comment":{"url":"https://api.github.com/repos/apple/swift/issues/comments/215942428","html_url":"https://github.com/apple/swift/pull/1891#issuecomment-215942428","issue_url":"https://api.github.com/repos/apple/swift/issues/1891","id":215942428,"user":{"login":"ddunbar","id":106625,"avatar_url":"https://avatars.githubusercontent.com/u/106625?v=3","gravatar_id":"","url":"https://api.github.com/users/ddunbar","html_url":"https://github.com/ddunbar","followers_url":"https://api.github.com/users/ddunbar/followers","following_url":"https://api.github.com/users/ddunbar/following{/other_user}","gists_url":"https://api.github.com/users/ddunbar/gists{/gist_id}","starred_url":"https://api.github.com/users/ddunbar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddunbar/subscriptions","organizations_url":"https://api.github.com/users/ddunbar/orgs","repos_url":"https://api.github.com/users/ddunbar/repos","events_url":"https://api.github.com/users/ddunbar/events{/privacy}","received_events_url":"https://api.github.com/users/ddunbar/received_events","type":"User","site_admin":false},"created_at":"2016-04-30T06:46:39Z","updated_at":"2016-04-30T06:46:39Z","body":"ping @jrose-apple"}}