Navigation Menu

Skip to content

Commit

Permalink
yum centos: use --define option for overriding march flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhys committed Aug 27, 2012
1 parent a3f2c7b commit 5f2de84
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/yum/build-rpm.sh
Expand Up @@ -120,9 +120,11 @@ cd ..
rm -rf tmp
mecab_build_options="--buildroot \$HOME/rpmbuild/BUILDROOT/\${srpm_base}"
if [ \$architecture = "i386" ]; then
mecab_build_options="\${mecab_build_options} --target i586"
rpmbuild -ba rpmbuild/SPECS/*.spec \${mecab_build_options} \
--define "optflags -O2 -g -march=i586"
else
rpmbuild -ba rpmbuild/SPECS/*.spec \${mecab_build_options}
fi
rpmbuild -ba rpmbuild/SPECS/*.spec \${mecab_build_options}
cp -p rpmbuild/RPMS/*/*.rpm dependencies/RPMS/
cp -p rpmbuild/SRPMS/*.rpm dependencies/SRPMS/
Expand Down

0 comments on commit 5f2de84

Please sign in to comment.