File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 323
323
" '*.*.ghc.*.opts += -fexternal-dynamic-refs'"
324
324
# The fact that we need to set this here is pretty idiotic. GHC should figure this out on it's own.
325
325
# Either have a runtime flag/setting to disable it or if dlopen fails, remember that it failed and
326
- # fall back to non-dynamic. We only have x86_64 dynamic linker with musl.
327
- + lib . optionalString ( targetPlatform . isAndroid || ( targetPlatform . isMusl && ! targetPlatform . isx86 ) )
326
+ # fall back to non-dynamic. We only have dynamic linker with musl if host and target arch match .
327
+ + lib . optionalString ( targetPlatform . isAndroid || ( targetPlatform . isMusl && haskell-nix . haskellLib . isCrossTarget ) )
328
328
" '*.ghc.cabal.configure.opts += --flags=-dynamic-system-linker'"
329
329
# The following is required if we build on aarch64-darwin for aarch64-iOS. Otherwise older
330
330
# iPhones/iPads/... won't understand the compiled code, as the compiler will emit LDSETALH
You can’t perform that action at this time.
0 commit comments