fix hardening for /usr/sbin/saslauthd

This commit is contained in:
Petr Lautrbach 2013-09-02 19:49:36 +02:00
parent edb498d84b
commit b1c7d8ba9f

View File

@ -187,8 +187,6 @@ chmod -x include/*.h
%patch48 -p1 -b .keytab
%build
CFLAGS="$RPM_OPT_FLAGS -fPIC"; export CFLAGS
# Find Kerberos.
krb5_prefix=`krb5-config --prefix`
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
fi
CFLAGS="$CFLAGS $CPPFLAGS"; export CFLAGS
CFLAGS="$CFLAGS $CPPFLAGS -fPIE"; export CFLAGS
LDFLAGS="$LDFLAGS -pie -Wl,-z,now"; export LDFLAGS
echo "$CFLAGS"
echo "$CPPFLAGS"