aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorClemens Fruhwirth <clemens@endorphin.org>2008-10-10 13:29:36 +0000
committerClemens Fruhwirth <clemens@endorphin.org>2008-10-10 13:29:36 +0000
commitcfaa0f53428e19ae91d25ccd519e4b1cfdd83b8f (patch)
tree0824f751f98cfc6cd0f1955c65a57bc82b2801a0 /Makefile
parenta5ad7c01155f362d7d4bdbd164a3776787473a2a (diff)
Compile with wrapper but remove it for dist-install
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2c77d49f..9a45298e 100644
--- a/Makefile
+++ b/Makefile
@@ -45,6 +45,11 @@ else
INPLACE_DATADIR = '$$prefix/share'
endif
+
+ifeq "$(BuildSharedLibs)" "YES"
+DYN_FLAGS = --ghc-option=-dynamic
+endif
+
install-inplace:
$(INSTALL_PACKAGE) install '$(GHC_PKG_PROG)' '$(INPLACE_PKG_CONF)' '' \
'$(FPTOOLS_TOP_ABS)/utils/haddock/install-inplace' \
@@ -59,4 +64,6 @@ install-inplace:
'$$prefix/haddock' \
--distpref dist-install \
$(INSTALL_INPLACE_FLAGS)
-
+ifeq "$(BuildSharedLibs)" "YES"
+ mv dist-install/build/haddock/haddock.dyn dist-install/build/haddock/haddock # remove the wrapper
+endif \ No newline at end of file