Skip to content

Commit

Permalink
Update readme (discussion of pthread)
Browse files Browse the repository at this point in the history
  • Loading branch information
edsko committed Apr 25, 2024
1 parent e429d8e commit e73b260
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 e73b260

Please sign in to comment.