From 7de08b499ae187cde1d9e27ecf42986161108bac Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 5 Oct 2018 17:58:58 +0900 Subject: [PATCH] disable dynamic linking of executables for better portability --- macros.ghc | 2 +- macros.ghc-os | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/macros.ghc b/macros.ghc index e67ba38..1a48dfc 100644 --- a/macros.ghc +++ b/macros.ghc @@ -2,7 +2,7 @@ # see https://fedoraproject.org/wiki/Packaging:Haskell for more details # "cabal" -%cabal [ -x Setup ] || ghc --make %{!?ghc_user_conf:-no-user-package-db} %{!?ghc_without_dynamic:-dynamic} Setup\ +%cabal [ -x Setup ] || ghc --make %{!?ghc_user_conf:-no-user-package-db} %{!?ghc_static_setup:-dynamic} Setup\ LANG=en_US.utf8\ ./Setup diff --git a/macros.ghc-os b/macros.ghc-os index e6ac90c..cdab44c 100644 --- a/macros.ghc-os +++ b/macros.ghc-os @@ -4,4 +4,6 @@ %_ghcdynlibdir %{_libdir} +%ghc_without_dynamic 1 + %cabal_install_options -v