From: Theodore Ts'o Date: Mon, 15 Mar 2010 04:14:46 +0000 (-0400) Subject: debian: static build no longer needs -fno-stack-protector X-Git-Tag: v1.41.11~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=025d1e77c81a77869f527bed018eb6701a6d419e;p=thirdparty%2Fe2fsprogs.git debian: static build no longer needs -fno-stack-protector From: Kees Cook I noticed that the debian/rules contains "-fno-stack-protector". While this used to be needed a while back, this is no longer required, as the stack protection code will be statically compiled into the static e2fsprogs correctly now. Addresses-Debian-Bug: #573923 Signed-off-by: "Theodore Ts'o" --- diff --git a/debian/rules b/debian/rules index 1c7ea40e5..6cf47a1b5 100755 --- a/debian/rules +++ b/debian/rules @@ -227,17 +227,17 @@ ifeq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) if type diet > /dev/null 2>&1 ; then \ cd ${staticbuilddir} && AWK=/usr/bin/awk \ ${topdir}/configure ${STATIC_CONF_FLAGS} \ - --with-diet-libc CFLAGS="${CFLAGS} -fno-stack-protector"; \ + --with-diet-libc CFLAGS="${CFLAGS}"; \ else \ cd ${staticbuilddir} && AWK=/usr/bin/awk \ ${topdir}/configure ${STATIC_CONF_FLAGS} \ - CFLAGS="${CFLAGS} -fno-stack-protector"; \ + CFLAGS="${CFLAGS}"; \ fi else cd ${staticbuilddir} && AWK=/usr/bin/awk CC="${DEB_HOST_GNU_TYPE}-gcc" \ ${topdir}/configure ${COMMON_CONF_FLAGS} ${STATIC_CONF_FLAGS} \ --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \ - CFLAGS="${CFLAGS} -fno-stack-protector" + CFLAGS="${CFLAGS}" endif mkdir -p ${STAMPSDIR} touch ${CFGSTATICSTAMP}