haskellPackages: disable shared libraries on android-prebuilt
Fixes build of `pkgsCross.aarch64-android-prebuilt.haskell.packages.ghc910.attoparsec`: ``` RPATH of binary /nix/store/g6ncgk2b04mv722hh2jgfbixyawbwabv-attoparsec-aarch64-unknown-linux-android-0.14.4/lib/ghc-9.10.1/lib/aarch64-android-ghc-9.10.1-inplace/libHSattoparsec-0.14.4-GkMCGqk5eKArKmd1r9IB7-ghc9.10.1.so contains a forbidden reference to /build/ ```
This commit is contained in:
parent
f08bf9d01a
commit
571e7eb5d2
@ -82,7 +82,10 @@ in
|
||||
profilingDetail ? "exported-functions",
|
||||
# TODO enable shared libs for cross-compiling
|
||||
enableSharedExecutables ? false,
|
||||
enableSharedLibraries ? !stdenv.hostPlatform.isStatic && (ghc.enableShared or false),
|
||||
enableSharedLibraries ?
|
||||
!stdenv.hostPlatform.isStatic
|
||||
&& (ghc.enableShared or false)
|
||||
&& !stdenv.hostPlatform.useAndroidPrebuilt,
|
||||
enableDeadCodeElimination ? (!stdenv.hostPlatform.isDarwin), # TODO: use -dead_strip for darwin
|
||||
# Disabling this for ghcjs prevents this crash: https://gitlab.haskell.org/ghc/ghc/-/issues/23235
|
||||
enableStaticLibraries ?
|
||||
|
Loading…
x
Reference in New Issue
Block a user