[ghc-rpm-macros] add %ghc_with_lib_for_ghci to enable building ghci library file

Jens Petersen petersen at fedoraproject.org
Tue Feb 26 17:32:14 UTC 2013


commit ff319a0028e35a2faca6c53b678c67b93961b63c
Author: Jens Petersen <petersen at redhat.com>
Date:   Tue Feb 26 18:19:02 2013 +0100

    add %ghc_with_lib_for_ghci to enable building ghci library file
    
    Normally not needed since ghci can now load .a files

 ghc-rpm-macros.ghc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/ghc-rpm-macros.ghc b/ghc-rpm-macros.ghc
index daa57ea..911fd11 100644
--- a/ghc-rpm-macros.ghc
+++ b/ghc-rpm-macros.ghc
@@ -250,7 +250,7 @@ find %{buildroot} -type f -exec sh -c "file {} | grep -q 'dynamically linked'" \
 # ghc_lib_build_without_haddock [name] [version]
 %ghc_lib_build_without_haddock()\
 %global debug_package %{nil}\
-%cabal_configure %{!?without_prof:-p} %{!?ghc_without_shared:--enable-shared} %{?1:--docdir=%{_docdir}/ghc-%1-%2 --htmldir=%{ghclibdocdir}/%1-%2} \
+%cabal_configure %{!?without_prof:-p} %{!?ghc_without_shared:--enable-shared} %{?1:--docdir=%{_docdir}/ghc-%1-%2 --htmldir=%{ghclibdocdir}/%1-%2} %{?ghc_with_lib_for_ghci:--enable-library-for-ghci}\
 %cabal build\
 %{nil}
 


More information about the scm-commits mailing list