File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 322
322
# `-fexternal-dynamic-refs` causes `undefined reference` errors when building GHC cross compiler for windows
323
323
+ lib . optionalString ( enableRelocatedStaticLibs && targetPlatform . isx86_64 && ! targetPlatform . isWindows )
324
324
" '*.*.ghc.*.opts += -fexternal-dynamic-refs'"
325
- + lib . optionalString targetPlatform . isAndroid
325
+ # The fact that we need to set this here is pretty idiotic. GHC should figure this out on it's own.
326
+ # Either have a runtime flag/setting to disable it or if dlopen fails, remember that it failed and
327
+ # fall back to non-dynamic. We only have x86_64 dynamic linker with musl.
328
+ + lib . optionalString targetPlatform . isAndroid || ( targetPlatform . isMusl && ! targetPlatform . isx86 )
326
329
" '*.ghc.cabal.configure.opts += --flags=-dynamic-system-linker'"
327
330
# The following is required if we build on aarch64-darwin for aarch64-iOS. Otherwise older
328
331
# 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