Skip to content
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

Cannot build libraries via nix generic-builder #20

Closed
dfordivam opened this issue Jul 20, 2018 · 4 comments
Closed

Cannot build libraries via nix generic-builder #20

dfordivam opened this issue Jul 20, 2018 · 4 comments

Comments

@dfordivam
Copy link
Member

While building libraries using nix, it errors out during linking due to WebGHC/ghc#7

I think it is due to -staticlib flag.

This flag might be redundant as the libraries built via cabal (without -staticlib) seem to work fine.

@ElvishJerricco
Copy link
Member

Hm. I don't see -staticlib being passed anywhere in generic-builder. Is this a generic-builder thing or a Cabal thing?

@dfordivam
Copy link
Member Author

I think is the one causing this.

generic-builder.nix

# --enable-static does not work on windows. This is a bug in GHC.
# --enable-static will pass -staticlib to ghc, which only works for mach-o and elf.
assert hostPlatform.isWindows -> enableStaticLibraries == false;

@ElvishJerricco
Copy link
Member

That's just an assertion. It can't change what actually happens in the build.

@ElvishJerricco
Copy link
Member

Oh but I see what you mean now. We need to make sure we're not passing --enable-static to cabal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants