File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 333
333
# `-fexternal-dynamic-refs` causes `undefined reference` errors when building GHC cross compiler for windows
334
334
+ lib . optionalString ( enableRelocatedStaticLibs && targetPlatform . isx86_64 && ! targetPlatform . isWindows )
335
335
" '*.*.ghc.*.opts += -fexternal-dynamic-refs'"
336
+ # With the latest nixpkgs mixing `struct utimbuf` and `struct _utimbuf` causes an error without this
337
+ + lib . optionalString ( targetPlatform . isWindows ) (
338
+ if builtins . compareVersions ghc-version "9.10" >= 0
339
+ then " '*.ghc-internal.ghc.*.opts += -optc-Wno-incompatible-pointer-types'"
340
+ else " '*.base.ghc.*.opts += -optc-Wno-incompatible-pointer-types'" )
336
341
# The fact that we need to set this here is pretty idiotic. GHC should figure this out on it's own.
337
342
# Either have a runtime flag/setting to disable it or if dlopen fails, remember that it failed and
338
343
# fall back to non-dynamic. We only have dynamic linker with musl if host and target arch match.
You can’t perform that action at this time.
0 commit comments