From ea60e8fe8904ba09495bf2568436f0254c12b766 Mon Sep 17 00:00:00 2001 From: Don Stewart Date: Sat, 21 May 2005 05:17:10 +0000 Subject: [PATCH] We have CYGWIN and __MINGW32__, not mingw32_TARGET_OS. --- src/plugins/System/Plugins/Env.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/System/Plugins/Env.hs b/src/plugins/System/Plugins/Env.hs index dd8ea27..c5ddba4 100644 --- a/src/plugins/System/Plugins/Env.hs +++ b/src/plugins/System/Plugins/Env.hs @@ -350,9 +350,10 @@ classifyLdInput ('-':'l':lib) = return (Just (DLL lib)) classifyLdInput ('-':'L':path) = return (Just (DLLPath path)) classifyLdInput _ = return Nothing +-- TODO need to define a MAC/DARWIN symbol #if defined(darwin_TARGET_OS) mkSOName root = "lib" ++ root ++ ".dylib" -#elif defined(mingw32_TARGET_OS) +#if defined(CYGWIN) || defined(__MINGW32__) -- Win32 DLLs have no .dll extension here, because addDLL tries -- both foo.dll and foo.drv mkSOName root = root