From 7fe540d8c382712d2eab02a05556ed168311ae2e Mon Sep 17 00:00:00 2001 From: sof Date: Thu, 6 Dec 2001 08:24:36 +0000 Subject: [PATCH] [project @ 2001-12-06 08:24:36 by sof] 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. --- ghc/driver/PackageSrc.hs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ghc/driver/PackageSrc.hs b/ghc/driver/PackageSrc.hs index eab4a01..0856ab5 100644 --- a/ghc/driver/PackageSrc.hs +++ b/ghc/driver/PackageSrc.hs @@ -64,7 +64,13 @@ package_details installing 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 = -- 1.7.10.4