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 /compiler/Makefile | |
parent | 8edb76687dc6aec821131861ce81f6b6d8293299 (diff) | |
download | haskell-c29b47b74c7625c66d81405907e303ea66bdb061.tar.gz |
add --enable-shared to configure, and $(BuildSharedLibs) to the build system
Diffstat (limited to 'compiler/Makefile')
-rw-r--r-- | compiler/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/Makefile b/compiler/Makefile index d818790d73..5598be6590 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -77,12 +77,13 @@ CONFIGURE_FLAGS_STAGE1 += --flags=-ghci ifeq "$(GhcWithInterpreter)" "YES" CONFIGURE_FLAGS_STAGE2 += --flags=ghci +ifeq "$(BuildSharedLibs)" "YES" +CONFIGURE_FLAGS_STAGE2 += --enable-shared # If we are going to use dynamic libraries instead of .o files for ghci, # we will need to always retain CAFs in the compiler. # ghci/keepCAFsForGHCi contains a GNU C __attribute__((constructor)) # function which sets the keepCAFs flag for the RTS before any Haskell # code is run. -ifeq "$(GhcBuildDylibs)" "YES" CONFIGURE_FLAGS_STAGE2 += --flags=dynlibs else CONFIGURE_FLAGS_STAGE2 += --flags=-dynlibs |