From 1f7fa4a322c164433de7073fb26588fcd03de811 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 22 Mar 2015 11:08:34 +0100 Subject: [PATCH] gcc: unbreak: disable FORTIFY_SOURCE for now (close #1113). FORTIFY_SOURCE could be reenabled for 4.9.3. --- srcpkgs/gcc/template | 3 +++ 1 file changed, 3 insertions(+) diff --git a/srcpkgs/gcc/template b/srcpkgs/gcc/template index 561dc9d6ea3..f907c6e47a3 100644 --- a/srcpkgs/gcc/template +++ b/srcpkgs/gcc/template @@ -105,6 +105,9 @@ do_configure() { *-musl) _args+=" --disable-libsanitizer";; esac + export CFLAGS="${CFLAGS/-D_FORTIFY_SOURCE=2/}" + export CXXFLAGS="${CXXFLAGS/-D_FORTIFY_SOURCE=2/}" + CONFIG_SHELL=/bin/bash \ ./configure --prefix=/usr --mandir=/usr/share/man \ --infodir=/usr/share/info --libexecdir=/usr/lib \