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

ghc: don’t add libiconv automatically #51455

Merged
merged 1 commit into from Dec 5, 2018

Conversation

matthewbauer
Copy link
Member

@matthewbauer matthewbauer commented Dec 3, 2018

ghc needs it to fail to correctly detect it for later. GHC uses autoconf to detect whether "-liconv" is needed. The test tries a test program that needs libiconv to work. If the test fails, libiconv is added to all LDFLAGS that GHC compiles. We want this to happen so that GHC works outside of Nix's cc-wrapper! So, this PR adds dontAddExtraLibs that tells cc-wrapper to not add extra libraries. I've added a short description in the docs explaining the situation as well.

Fixes #46814.

@@ -206,6 +206,8 @@ stdenv.mkDerivation (rec {
"--disable-large-address-space"
];

dontAddExtraLibs = true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add a comment in front of those attributes that explains what they accomplish and/or why they are needed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes - done in latest in push.

ghc needs it to fail to correctly detect it for later.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants