-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patch cabal to pass --static flags to pkg-config #62
Comments
At NixCon I found that this requires adding a new field to ghc-pkg's |
Before realising the above, I made a WIP for passing https://github.com/nh2/cabal/tree/pkg-config-static-flag Today I also made a WIP for the more significant change of adding the relevant fields to https://github.com/nh2/cabal/tree/extraLibrariesStatic-field I still have to implement the GHC side. |
Blocking Hadrian issue that prevenets me from adding fields to Cabal: |
https://gitlab.haskell.org/ghc/ghc/issues/17468 has been fixed! |
@nh2 I am picking this up again. Can you elaborate what changes need to happen on the GHC side? Looking at
in #62 (comment). I was under the impression that Cabal would control the linker line and that GHC wouldn't need to do anything special with |
pkg-config
takes a--static
flag to output.a
files for--libs
. We currently add those manually instatic-haskell-nix
.Instead, we should teach cabal to pass it, given that
.cabal
files can specify pkg-config dependencies.Hopefully we can then get rid of pkg-config related overrides in
static-haskell-nix
and fundamentally fix issues like #57, so that Haskell libraries "remember" which static system libraries they need.The text was updated successfully, but these errors were encountered: