Skip to content

Commit

Permalink
Merge pull request #9 from well-typed/edsko/readme
Browse files Browse the repository at this point in the history
Update readme (discussion of `pthread`)
  • Loading branch information
edsko authored Apr 25, 2024
2 parents e429d8e + e73b260 commit c2ea390
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,16 @@ Loading static libraries is not supported in this configuration.
Try using a dynamic library instead.
```

Currently the only known workaround is patch such packages and replace this with
Currently the only known workaround is patch such packages; it many cases it may
be possible to simply remove `pthread` from `extra-libraries`; alternatively, it
may be possible to instead use `cc-options`:

```cabal
cc-options: -pthread
```

An example is `crypton`, see
[crypton#33](https://github.com/kazu-yamamoto/crypton/pull/33) for details.
An example used to be `crypton`; see
[crypton#32](https://github.com/kazu-yamamoto/crypton/pull/32) and
[crypton#33](https://github.com/kazu-yamamoto/crypton/pull/33) for examples of
both of these options, and see https://stackoverflow.com/a/62561519/742991 for a
discussion of the difference between `-lphread` and `-pthread`.

0 comments on commit c2ea390

Please sign in to comment.