Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,261
Issues
4,261
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
394
Merge Requests
394
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
624e8212
Commit
624e8212
authored
Mar 20, 2010
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable shared libraries on Windows; fixes trac
#3879
parent
e95140a5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
3 deletions
+23
-3
mk/config.mk.in
mk/config.mk.in
+1
-1
rts/PrimOps.cmm
rts/PrimOps.cmm
+2
-0
rts/RtsDllMain.c
rts/RtsDllMain.c
+3
-2
rts/RtsDllMain.h
rts/RtsDllMain.h
+17
-0
No files found.
mk/config.mk.in
View file @
624e8212
...
...
@@ -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@
...
...
rts/PrimOps.cmm
View file @
624e8212
...
...
@@ -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
...
...
rts/RtsDllMain.c
View file @
624e8212
...
...
@@ -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
)
{
/*
...
...
rts/RtsDllMain.h
0 → 100644
View file @
624e8212
#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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment