only echo _smp_mflags if it is defined

This commit is contained in:
Jens Petersen 2015-02-15 01:11:15 +09:00
parent f8a0b1d0a6
commit 932a5964b8
1 changed files with 2 additions and 0 deletions

View File

@ -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