We have CYGWIN and __MINGW32__, not mingw32_TARGET_OS.
This commit is contained in:
parent
40d4705bed
commit
ea60e8fe89
@ -350,9 +350,10 @@ classifyLdInput ('-':'l':lib) = return (Just (DLL lib))
|
|||||||
classifyLdInput ('-':'L':path) = return (Just (DLLPath path))
|
classifyLdInput ('-':'L':path) = return (Just (DLLPath path))
|
||||||
classifyLdInput _ = return Nothing
|
classifyLdInput _ = return Nothing
|
||||||
|
|
||||||
|
-- TODO need to define a MAC/DARWIN symbol
|
||||||
#if defined(darwin_TARGET_OS)
|
#if defined(darwin_TARGET_OS)
|
||||||
mkSOName root = "lib" ++ root ++ ".dylib"
|
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
|
-- Win32 DLLs have no .dll extension here, because addDLL tries
|
||||||
-- both foo.dll and foo.drv
|
-- both foo.dll and foo.drv
|
||||||
mkSOName root = root
|
mkSOName root = root
|
||||||
|
Loading…
x
Reference in New Issue
Block a user