Skip to content

Commit

Permalink
Merge pull request #5 from well-typed/edsko/pthread
Browse files Browse the repository at this point in the history
Discuss `pthread`
  • Loading branch information
edsko authored Apr 24, 2024
2 parents 89b13de + 5ed134a commit f596891
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,24 @@ any dependencies (it does not include the hash of the plugin in the hash of the
packages). So wipe your `cabal-plugin-store` as well as your `dist-newstyle`
directory each time you update your plugin (another good reason for using a
separate store for the plugin).

## `libphread`

For reasons currently unclear, enabling the plugin on packages that declare

```cabal
extra-libraries: pthread
```

in their `.cabal` file will cause a compilation failure:

```
<command line>: User-specified static library could not be loaded (/usr/lib/gcc/x86_64-linux-gnu/13/../../../x86_64-linux-gnu/libpthread.a)
Loading static libraries is not supported in this configuration.
Try using a dynamic library instead.
```

Currently the only known workaround is to simply remove this line from the
`.cabal` file; it does not appear to be necessary on Linux. See
[crypton#32](https://github.com/kazu-yamamoto/crypton/pull/32) for an example.

0 comments on commit f596891

Please sign in to comment.