forked from mirrors/nixpkgs
pkgsCross.ghcjs.haskellPackages.ghc: formally disable shared libs
Hadrian does this automatically unfortunately, but unless we correctly set enableShared as well, mkDerivation will try building shared libs which will inevitably fail due to missing shared core packages. Let's stay away from fully_static which does a lot of funky stuff and was not working before anyways for pkgsStatic.
This commit is contained in:
parent
7587e059ac
commit
faa92cd30b
|
@ -62,7 +62,7 @@
|
|||
|
||||
, # Whether to build dynamic libs for the standard library (on the target
|
||||
# platform). Static libs are always built.
|
||||
enableShared ? with stdenv.targetPlatform; !isWindows && !useiOSPrebuilt && !isStatic
|
||||
enableShared ? with stdenv.targetPlatform; !isWindows && !useiOSPrebuilt && !isStatic && !isGhcjs
|
||||
|
||||
, # Whether to build terminfo.
|
||||
enableTerminfo ? !(stdenv.targetPlatform.isWindows
|
||||
|
@ -91,7 +91,7 @@
|
|||
transformers =
|
||||
lib.optionals useLLVM [ "llvm" ]
|
||||
++ lib.optionals (!enableShared) [
|
||||
"fully_static"
|
||||
"no_dynamic_libs"
|
||||
"no_dynamic_ghc"
|
||||
]
|
||||
++ lib.optionals (!enableProfiledLibs) [ "no_profiled_libs" ]
|
||||
|
|
Loading…
Reference in a new issue