prefer gcc44 if installed

This commit is contained in:
boypt
2021-08-25 14:33:28 +08:00
parent 405efd97fb
commit 120bddaf1c

View File

@@ -46,6 +46,11 @@ for fn in ${SOURCES[@]}; do
install -v -m666 $__dir/downloads/$fn $rpmtopdir/SOURCES/
done
# on centos5, it's prefered to use gcc44
if yum --disablerepo=* list installed gcc44; then
export CC=gcc44
fi
pushd $rpmtopdir
rpmbuild -ba SPECS/openssh.spec --target $(uname -m) --define "_topdir $PWD"
popd