-
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.
Prefer static C libraries on static Haskell binary
I.e. when building a Haskell binary with `linkstatic = True`, then link statically against Haskell and C library dependencies where possible. GHC's default behaviour (following from the linker's behaviour) is to prefer dynamic libraries over static libraries for C library dependencies, even when linking statically against Haskell libraries. By only passing static library versions (unless on static library is available) of C library dependencies as inputs to the linking action, the linker has no choice but to link statically. Closes #580
- Loading branch information
Showing
1 changed file
with
53 additions
and
5 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