diff options
author | Simon Marlow <marlowsd@gmail.com> | 2010-04-28 20:52:41 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2010-04-28 20:52:41 +0000 |
commit | 3c6190b0beb551f7637e7edbd1bbff803af3a79e (patch) | |
tree | 04b1aade1f989ece4f6cda4d1ea84f28773a62db /mk | |
parent | 9105c03ffef568aab097a293313eb6ff4f0dd5dc (diff) | |
download | haskell-3c6190b0beb551f7637e7edbd1bbff803af3a79e.tar.gz |
Add $(GhcDynamic) knob, set to YES to get stage2 linked with -dynamic
Default currently NO.
Validate passed with GhcDynamic=YES on x86/Linux here.
The compiler is currently slower on x86 when linked -dynamic,
because the GC inner loop has been adversely affected by -fPIC, I'm
looking into how to fix it.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/config.mk.in | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in index d12cbff75b..fcf7e0d008 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -99,14 +99,12 @@ GhcStage3HcOpts=-O2 GhcProfiled=NO GhcDebugged=NO +GhcDynamic=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 x86_64-unknown-freebsd i386-unknown-mingw32 i386-apple-darwin),YES,NO) -# 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, |