diff options
author | Simon Marlow <marlowsd@gmail.com> | 2008-07-24 15:49:25 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2008-07-24 15:49:25 +0000 |
commit | c29b47b74c7625c66d81405907e303ea66bdb061 (patch) | |
tree | c7ae65b7c2714698d465f124ae504f7d533df049 /mk | |
parent | 8edb76687dc6aec821131861ce81f6b6d8293299 (diff) | |
download | haskell-c29b47b74c7625c66d81405907e303ea66bdb061.tar.gz |
add --enable-shared to configure, and $(BuildSharedLibs) to the build system
Diffstat (limited to 'mk')
-rw-r--r-- | mk/config.mk.in | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in index ac704a342b..f42e5fa764 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -242,6 +242,11 @@ GhcStage3HcOpts=-O2 GhcProfiled=NO GhcDebugged=NO +# Build shared and/or static libs? +BuildSharedLibs=@BuildSharedLibs@ +# ToDo later: +# BuildStaticLibs=@BuildStaticLibs@ + # Build a compiler that will build *unregisterised* libraries and # binaries by default. Unregisterised code is supposed to compile and # run without any support for architecture-specific assembly mangling, @@ -362,6 +367,10 @@ else GhcLibWays=p endif +ifeq "$(BuildSharedLibs)" "YES" +GhcLibWays += dyn +endif + # In addition, the RTS is built in some further variations. Ways that # make sense here: # @@ -381,6 +390,10 @@ ifeq "$(BootingFromHc)" "NO" GhcRTSWays += debug endif +ifeq "$(BuildSharedLibs)" "YES" +GhcRTSWays += debug_dyn thr_dyn thr_debug_dyn +endif + # Want the threaded versions unless we're unregisterised # Defer the check until later by using $(if..), because GhcUnregisterised might # be set in build.mk, which hasn't been read yet. |