--- gcc.spec 2016-11-03 21:49:03.000000000 +0900 +++ gcc.spec 2017-02-11 11:18:28.000000000 +0900 @@ -47,7 +47,7 @@ %global build_libitm 0 %endif %global build_cloog 1 -%global build_libstdcxx_docs 1 +%global build_libstdcxx_docs 0 %ifarch %{ix86} x86_64 ppc ppc64 ppc64le ppc64p7 s390 s390x %{arm} aarch64 %global attr_ifunc 1 %else @@ -1172,6 +1172,9 @@ %ifarch %{ix86} OPT_FLAGS=`echo $OPT_FLAGS|sed -e 's/-march=i.86//g'` %endif +%ifarch i586 +OPT_FLAGS="$OPT_FLAGS -march=i586 -m32" +%endif %ifarch sparc64 cat > gcc64 <<"EOF" #!/bin/sh