From 1de54f0c22a808b2b0304d5f82eada579da8db04 Mon Sep 17 00:00:00 2001 From: rrt Date: Wed, 14 Feb 2001 12:41:15 +0000 Subject: [PATCH] [project @ 2001-02-14 12:41:15 by rrt] Add winmm to libraries for RTS under Windows, where it's now used for threadDelay. --- ghc/driver/PackageSrc.hs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ghc/driver/PackageSrc.hs b/ghc/driver/PackageSrc.hs index 4a58145..5574b27 100644 --- a/ghc/driver/PackageSrc.hs +++ b/ghc/driver/PackageSrc.hs @@ -46,7 +46,11 @@ package_details installing = then [ clibdir ] else [ ghc_src_dir cGHC_RUNTIME_DIR ], hs_libraries = [ "HSrts" ], +#ifndef mingw32_TARGET_OS extra_libraries = [], +#else + extra_libraries = [ "-lwinmm" ], -- for the threadDelay timer +#endif include_dirs = if installing then [ clibdir ++ "/includes" ] else [ ghc_src_dir cGHC_INCLUDE_DIR ], -- 1.7.10.4