Skip to content

Commit 4009bb7

Browse files
committed
Fix ghc:-dynamic-system-linker for android
1 parent e8198e9 commit 4009bb7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/ghc/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,8 @@ let
322322
# `-fexternal-dynamic-refs` causes `undefined reference` errors when building GHC cross compiler for windows
323323
+ lib.optionalString (enableRelocatedStaticLibs && targetPlatform.isx86_64 && !targetPlatform.isWindows)
324324
" '*.*.ghc.*.opts += -fexternal-dynamic-refs'"
325+
+ lib.optionalString targetPlatform.isAndroid
326+
" '*.ghc.cabal.configure.opts += --flags=-dynamic-system-linker'"
325327
# The following is required if we build on aarch64-darwin for aarch64-iOS. Otherwise older
326328
# iPhones/iPads/... won't understand the compiled code, as the compiler will emit LDSETALH
327329
# + lib.optionalString (targetPlatform.???) "'*.rts.ghc.c.opts += -optc-mcpu=apple-a7 -optc-march=armv8-a+norcpc'"

0 commit comments

Comments
 (0)