Request for comments: pthread
dependency
#32
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note
I don't know what the right answer is here. Perhaps this PR should be just be closed as wrong.
In
crypton.cabal
we haveThis was introduced in haskell-crypto#184 . I don't understand the issue well enough at all, perhaps this is actually required in some setups (perhaps only when the gold linker is used?). However, on my machine at least, this line does not appear to be necessary (both with and without
-threaded
), and https://stackoverflow.com/a/62561519/742991 suggests that-lpthread
is deprecated.It's causing some issues in some circumstances (e.g., see my trace-foreign-calls plugin), when
ghc
tries to loadcrypton
dynamically, resulting in something likeRelated: https://gitlab.haskell.org/ghc/ghc/-/issues/12816 (which adds the dependency, to be clear, not remove it).