only echo _smp_mflags if it is defined
This commit is contained in:
parent
f8a0b1d0a6
commit
932a5964b8
2
ghc.spec
2
ghc.spec
@ -343,7 +343,9 @@ export LDFLAGS="${LDFLAGS:-%__global_ldflags}"
|
|||||||
|
|
||||||
# avoid "ghc: hGetContents: invalid argument (invalid byte sequence)"
|
# avoid "ghc: hGetContents: invalid argument (invalid byte sequence)"
|
||||||
export LANG=en_US.utf8
|
export LANG=en_US.utf8
|
||||||
|
%if %{defined _smp_mflags}
|
||||||
echo %{?_smp_mflags}
|
echo %{?_smp_mflags}
|
||||||
|
%endif
|
||||||
%ifarch %{ix86} x86_64
|
%ifarch %{ix86} x86_64
|
||||||
%global _smp_mflags -j16
|
%global _smp_mflags -j16
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
Reference in New Issue
Block a user