fix hardening for /usr/sbin/saslauthd
This commit is contained in:
parent
edb498d84b
commit
b1c7d8ba9f
@ -187,8 +187,6 @@ chmod -x include/*.h
|
|||||||
%patch48 -p1 -b .keytab
|
%patch48 -p1 -b .keytab
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS -fPIC"; export CFLAGS
|
|
||||||
|
|
||||||
# Find Kerberos.
|
# Find Kerberos.
|
||||||
krb5_prefix=`krb5-config --prefix`
|
krb5_prefix=`krb5-config --prefix`
|
||||||
if test x$krb5_prefix = x%{_prefix} ; then
|
if test x$krb5_prefix = x%{_prefix} ; then
|
||||||
@ -225,7 +223,8 @@ if test x"$LIB_DIR" != "x-L%{_libdir}"; then
|
|||||||
LDFLAGS="$LIB_DIR $LDFLAGS"; export LDFLAGS
|
LDFLAGS="$LIB_DIR $LDFLAGS"; export LDFLAGS
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CFLAGS="$CFLAGS $CPPFLAGS"; export CFLAGS
|
CFLAGS="$CFLAGS $CPPFLAGS -fPIE"; export CFLAGS
|
||||||
|
LDFLAGS="$LDFLAGS -pie -Wl,-z,now"; export LDFLAGS
|
||||||
|
|
||||||
echo "$CFLAGS"
|
echo "$CFLAGS"
|
||||||
echo "$CPPFLAGS"
|
echo "$CPPFLAGS"
|
||||||
|
Loading…
Reference in New Issue
Block a user