From c7e112910cef585bdbba62de735bb5b1cd1f9f1a Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 19 Jul 2020 16:00:06 +0800 Subject: [PATCH] try to reduce compile-time memory utilization on armv7hl --- pandoc.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pandoc.spec b/pandoc.spec index 9867d10..2a28035 100644 --- a/pandoc.spec +++ b/pandoc.spec @@ -227,6 +227,12 @@ This package provides the Haskell %{name} profiling library. %build # Begin cabal-rpm build: %ghc_libs_build %{subpkgs} +%ifarch armv7hl +# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=965121 +# [101 of 166] Compiling Text.Pandoc.Writers.LaTeX +# ghc: out of memory (requested 1048576 bytes) +%define cabal_configure_options --ghc-options="-optc--param -optcggc-min-expand=5" +%endif %ghc_lib_build # End cabal-rpm build