package rts (mingw32): in installed mode, add gcc-lib/ to library_dirs,
forcing it to be used by default. This allows other backend tools to be
used (e.g., `dllwrap') without haphazardly mixing & matching (import)
libs.
MERGE TO STABLE.
import_dirs = [],
source_dirs = [],
library_dirs = if installing
- then [ "$libdir" ]
+ then
+#ifdef mingw32_TARGET_OS
+ -- force the dist-provided gcc-lib/ into scope.
+ [ "$libdir", "$libdir/gcc-lib" ]
+#else
+ [ "$libdir" ]
+#endif
else [ ghc_src_dir cGHC_RUNTIME_DIR ],
hs_libraries = [ "HSrts" ],
extra_libraries =