From 0d3cc88776637c378763f5d83031d6e3f4f1b906 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sun, 15 Feb 2015 01:11:15 +0900 Subject: [PATCH] only echo _smp_mflags if it is defined --- ghc.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ghc.spec b/ghc.spec index ac1fa22..dba5ee0 100644 --- a/ghc.spec +++ b/ghc.spec @@ -343,7 +343,9 @@ export LDFLAGS="${LDFLAGS:-%__global_ldflags}" # avoid "ghc: hGetContents: invalid argument (invalid byte sequence)" export LANG=en_US.utf8 +%if %{defined _smp_mflags} echo %{?_smp_mflags} +%endif %ifarch %{ix86} x86_64 %global _smp_mflags -j16 %endif