[krb5] - build with -fstack-protector-all instead of the default -fstack-protector, so that we add checki
Nalin Dahyabhai
nalin at fedoraproject.org
Fri Sep 3 17:50:56 UTC 2010
commit 3f5343a0b93bcfcabc227564fb9ea592ab1cd636
Author: Nalin Dahyabhai <nalin at redhat.com>
Date: Fri Sep 3 13:50:17 2010 -0400
- build with -fstack-protector-all instead of the default -fstack-protector,
so that we add checking to more functions (i.e., all of them) (#629950)
krb5.spec | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/krb5.spec b/krb5.spec
index 9af0a74..fd3d112 100644
--- a/krb5.spec
+++ b/krb5.spec
@@ -245,7 +245,7 @@ popd
pushd src
# Work out the CFLAGS and CPPFLAGS which we intend to use.
INCLUDES=-I%{_includedir}/et
-CFLAGS="`echo $RPM_OPT_FLAGS $DEFINES $INCLUDES -fPIC -fno-strict-aliasing`"
+CFLAGS="`echo $RPM_OPT_FLAGS $DEFINES $INCLUDES -fPIC -fno-strict-aliasing -fstack-protector-all`"
CPPFLAGS="`echo $DEFINES $INCLUDES`"
%configure \
CC="%{__cc}" \
@@ -638,6 +638,8 @@ exit 0
%changelog
* Fri Sep 3 2010 Nalin Dahyabhai <nalin at redhat.com> 1.8.3-3
+- build with -fstack-protector-all instead of the default -fstack-protector,
+ so that we add checking to more functions (i.e., all of them) (#629950)
- also link binaries with -Wl,-z,relro,-z,now (part of #629950)
* Tue Aug 24 2010 Nalin Dahyabhai <nalin at redhat.com> 1.8.3-2
More information about the scm-commits
mailing list