From cfaa0f53428e19ae91d25ccd519e4b1cfdd83b8f Mon Sep 17 00:00:00 2001 From: Clemens Fruhwirth Date: Fri, 10 Oct 2008 13:29:36 +0000 Subject: Compile with wrapper but remove it for dist-install --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3