-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for building fully-static binaries
This commit implements support for fully-statically-linked binaries by extending functionality linked to the `is_static` attribute of an active Haskell toolchain. In particular: * Packages built with Cabal will be passed fields that ensure their static artifacts are relocatable (`-fPIC` and `-fexternal-dynamic-refs`). * Intermediate artifacts (such as binaries built by `hsc2hs` for the purposes of generating Haskell code) will also be built statically to avoid issues caused by the absences of dynamic libraries. * Linker flags for REPLs will be generated so that they correctly find static C library dependencies instead of failing/finding dynamic counterparts.
- Loading branch information
Showing
10 changed files
with
324 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.