From: Michael Tremer Date: Mon, 11 Oct 2010 21:11:33 +0000 (+0200) Subject: perl: Build with -fstack-protector-all. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5bd9f97029f98924de6920d8cc75969a44065a9;p=ipfire-3.x.git perl: Build with -fstack-protector-all. --- diff --git a/pkgs/core/perl/perl.nm b/pkgs/core/perl/perl.nm index d99a363b7..c1325847b 100644 --- a/pkgs/core/perl/perl.nm +++ b/pkgs/core/perl/perl.nm @@ -26,7 +26,7 @@ include $(PKGROOT)/Include PKG_NAME = perl PKG_VER = 5.12.2 -PKG_REL = 0 +PKG_REL = 1 PKG_MAINTAINER = PKG_GROUP = Development/Languages @@ -60,6 +60,10 @@ define STAGE_PREPARE_CMDS cd $(DIR_APP) && sed -i 's/command /command[ -]/' makedepend.SH endef +# Perl passes -fstack-protector, if no argument is passed that enables the SSP. +# So we need to pass it explicitely. +CFLAGS += -fstack-protector-all + define STAGE_BUILD cd $(DIR_APP) && sed -i -e "s|BUILD_ZLIB\s*= True|BUILD_ZLIB = False|" \ -e "s|INCLUDE\s*= ./zlib-src|INCLUDE = /usr/include|" \