From cd632db141c5d3ef4968f4b5a8a34312af5040b7 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 22 Dec 2009 10:15:08 +0000 Subject: [PATCH] add bcond for dynamic linking --- alex.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/alex.spec b/alex.spec index 74426d7..80d903f 100644 --- a/alex.spec +++ b/alex.spec @@ -1,3 +1,6 @@ +# link with shared libs +%bcond_without dynamic + # ghc does not emit debug information %global debug_package %{nil} @@ -28,7 +31,7 @@ expressions. It is similar to the tool lex or flex for C/C++. %build -%cabal_configure --ghc-option=-dynamic +%cabal_configure %{?with_dynamic:--ghc-option=-dynamic} %cabal build cd doc @@ -55,6 +58,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Tue Dec 22 2009 Jens Petersen +- add bcond for dynamic linking + * Mon Dec 21 2009 Jens Petersen - 2.3.1-7 - build dynamically with ghc-6.12.1