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

Cabal: Add RUNPATH entries for transitive C library dependencies #1282

Merged
merged 2 commits into from
Mar 30, 2020

Conversation

aherrmann
Copy link
Member

Add RUNPATH entries for all transitive C library dependencies to Cabal targets. GHC passes -l flags for all transitive C library dependencies when linking. Accordingly, we need to provide RUNPATH entries for all transitive C libraries. Also, to ensure that binaries can find their dynamic library dependencies, we add them to the runfiles attribute of the DefaultInfo provider.

Also, make static Haskell libraries available in Cabal build action, so that Cabal binaries can link statically against Haskell libraries.

Extends the test-case introduced in #1267 to test for RUNPATH entries to transitive C library dependencies in Cabal binary targets.

@Profpatsch Profpatsch added the merge-queue merge on green CI label Mar 24, 2020
@thufschmitt thufschmitt added merge-queue merge on green CI and removed merge-queue merge on green CI labels Mar 30, 2020
@thufschmitt
Copy link
Contributor

@Profpatsch @aherrmann, any idea why this isn't picked-up by the merge bot?

@aherrmann
Copy link
Member Author

/azp run

@aherrmann
Copy link
Member Author

Azure didn't pick it up.

GHC passes `-l` flags for all transitive C library dependencies when
linking. Accordingly, we need to provide `RUNPATH` entries for all
transitive C libraries. Also, to ensure that binaries can find their
dynamic library dependencies, we add them to the `runfiles` attribute of
the `DefaultInfo` provider.
Regression test for Cabal binary targets not including RUNPATH entries
for transitive C library dependencies.
@mboes mboes force-pushed the cabal-binary-runpath branch from 063e8a4 to 8a88b9f Compare March 30, 2020 17:15
@mergify mergify bot merged commit 2c4c356 into master Mar 30, 2020
@mergify mergify bot deleted the cabal-binary-runpath branch March 30, 2020 17:42
@mergify mergify bot removed the merge-queue merge on green CI label Mar 30, 2020
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

Successfully merging this pull request may close these issues.

3 participants