Skip to content
  • Niklas Hambüchen's avatar
    Add field to to remember libs needed for fully static linking · bf32602d
    Niklas Hambüchen authored and Alex Biehl's avatar Alex Biehl committed
    * WIP: Still need to update ghc to use the new `libraryDirsStatic` and
           `extraLibrariesStatic` fields in `InstalledPackageInfo` for linking.
    * WIP: Adding -L paths to .a libs in .conf files will likely increase nix
           closure size for dynamically linked Haskell packages because if pkg-config
           finds an `-a` file, the path to it will be remembered.
           (That only has an impact if the .a file is in a split-output from the .so file.)
           Perhaps we make the feature that `pkg-config --static` is called
           opt-outable.
           On the other hand Haskell libs always carry their .a files, so pulling
           a few system `.a` files more shouldn't make much of a difference.
           So this opt-out should probably be an extra feature for later, if at all.
    bf32602d