fix: support krb5 in M32=1

This commit is contained in:
boypt
2026-07-09 13:14:52 +08:00
parent 0317be588e
commit 196031cca0
5 changed files with 15 additions and 13 deletions

View File

@@ -122,10 +122,6 @@ BUILD_RPM() {
SOURCES+=($PERLSRC)
RPMBUILDOPTS+=('--define' "perlver ${PERLVER}" '--define' 'dist .el5')
export CC=gcc44
if [[ ${M32:-0} != 0 ]]; then
RPMBUILDOPTS+=('--target' i686)
export CFLAGS=-m32 LDFLAGS=-m32
fi
fi
# add dist variable if not defined
@@ -139,6 +135,13 @@ BUILD_RPM() {
install -v -m666 $__dir/downloads/$fn ./SOURCES/
done
if [[ ${M32:-0} != 0 ]]; then
local SETARCH="setarch i386"
RPMBUILDOPTS+=('--target' i686)
export CFLAGS=-m32 LDFLAGS=-m32
fi
${SETARCH:-} \
rpmbuild -ba ./SPECS/${SPECFILE:-openssh.spec} "${RPMBUILDOPTS[@]}"
if [[ $? -ne 0 ]]; then