From d67010806960b7150b09cf327d7a9b7ddb176293 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 2 Mar 2019 22:20:59 +0800 Subject: [PATCH] fix build on s390x (unregisterized) with -O0 --- ghc-JuicyPixels.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ghc-JuicyPixels.spec b/ghc-JuicyPixels.spec index f39b138..d52e202 100644 --- a/ghc-JuicyPixels.spec +++ b/ghc-JuicyPixels.spec @@ -57,6 +57,10 @@ sed -i 's/\r$//' LICENSE %build +# https://ghc.haskell.org/trac/ghc/ticket/16379 +%ifarch s390x +cabal_configure_extra_options='--ghc-option="-O0"' +%endif # Begin cabal-rpm build: %ghc_lib_build # End cabal-rpm build