Commit 624e8212 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Enable shared libraries on Windows; fixes trac #3879

parent e95140a5
......@@ -102,7 +102,7 @@ GhcDebugged=NO
GhcLibProfiled=$(if $(filter p,$(GhcLibWays)),YES,NO)
# Do we support shared libs?
PlatformSupportsSharedLibs = $(if $(filter $(TARGETPLATFORM),i386-unknown-linux x86_64-unknown-linux i386-unknown-freebsd amd64-unknown-freebsd),YES,NO)
PlatformSupportsSharedLibs = $(if $(filter $(TARGETPLATFORM),i386-unknown-linux x86_64-unknown-linux i386-unknown-freebsd amd64-unknown-freebsd i386-unknown-mingw32),YES,NO)
# ToDo later:
# BuildStaticLibs=@BuildStaticLibs@
......
......@@ -35,7 +35,9 @@ import base_ControlziExceptionziBase_nestedAtomically_closure;
import EnterCriticalSection;
import LeaveCriticalSection;
import ghczmprim_GHCziBool_False_closure;
#if !defined(mingw32_HOST_OS)
import sm_mutex;
#endif
/*-----------------------------------------------------------------------------
Array Primitives
......
......@@ -9,6 +9,7 @@
#include "PosixSource.h"
#include "Rts.h"
#include "RtsAPI.h"
#include "RtsDllMain.h"
#ifdef HAVE_WINDOWS_H
#include <windows.h>
......@@ -18,9 +19,9 @@
#if defined(__PIC__) && defined(mingw32_TARGET_OS)
BOOL
WINAPI
DllMain ( HINSTANCE hInstance
DllMain ( HINSTANCE hInstance STG_UNUSED
, DWORD reason
, LPVOID reserved
, LPVOID reserved STG_UNUSED
)
{
/*
......
#include "Rts.h"
#ifdef HAVE_WINDOWS_H
#include <windows.h>
#endif
/* I'd be mildly surprised if this wasn't defined, but still. */
#if defined(__PIC__) && defined(mingw32_TARGET_OS)
BOOL
WINAPI
DllMain ( HINSTANCE hInstance
, DWORD reason
, LPVOID reserved
);
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment