diff options
| author | Alex Tunstall <alex@tunstall.xyz> | 2023-07-23 09:43:41 +0100 |
|---|---|---|
| committer | sternenseemann <sternenseemann@systemli.org> | 2024-09-08 23:50:05 +0200 |
| commit | 1261fe024fada592533a61a1f6ca1e03be50a4c6 (patch) | |
| tree | 7880dda8b87d352143a798657ab918f881880f1c /pkgs/development/python-modules/httpserver | |
| parent | 4b00fbf16307a1501bd57370cf334a905554ee90 (diff) | |
haskell.compiler.ghc*: fall back to host libs for “cross native” ghc
The goal of this commit is basically to eliminate the use of
targetPackages for finding libraries. Instead, we introduce a
`targetLibs` set that can be used instead. The libraries in there
philosophically come from targetPackages since they are used by the core
libs and will be linked against user code. However, when cross compiling
GHC it's always a native compiler, so we can and have to use
pkgsHostTarget (targetPackages would be empty). This is explained more
in the acccompanying comment.
An alternative to this approach is not to pass in the libraries
explicitly via `--with-*` flags and rely on cc-wrapper and splicing to
pick the correct library. This works well for ncurses and probably
merits testing for other libraries as well since it's very simple. It
would need to be verified, however, that configure doesn't discover the
“wrong” library and leaks it somewhere.
Co-authored-by: sternenseemann <sternenseemann@systemli.org>
Diffstat (limited to 'pkgs/development/python-modules/httpserver')
0 files changed, 0 insertions, 0 deletions
