From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16968 invoked by alias); 20 Feb 2016 10:24:44 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 16909 invoked by uid 89); 20 Feb 2016 10:24:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=8217, Hx-languages-length:1217, 8267 X-HELO: mail.esperi.org.uk From: Nix To: libc-alpha@sourceware.org Cc: carlos@redhat.com Subject: [PATCH 09/12] Enable -fstack-protector=* when requested by configure. Date: Sat, 20 Feb 2016 10:25:00 -0000 Message-Id: <1455963826-21885-10-git-send-email-nix@esperi.org.uk> In-Reply-To: <1455963826-21885-1-git-send-email-nix@esperi.org.uk> References: <1455963826-21885-1-git-send-email-nix@esperi.org.uk> X-SW-Source: 2016-02/txt/msg00597.txt.bz2 From: Nick Alcock This finally turns on all the machinery added in previous commits. --- Makeconfig | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makeconfig b/Makeconfig index 87a22e8..cdffdc7 100644 --- a/Makeconfig +++ b/Makeconfig @@ -762,6 +762,11 @@ endif # disable any optimization that assume default rounding mode. +math-flags = -frounding-math +# We might want to compile with some stack-protection flag. +ifneq ($(stack-protector),) ++stack-protector=$(stack-protector) +endif + # This is the program that generates makefile dependencies from C source files. # The -MP flag tells GCC >= 3.2 (which we now require) to produce dummy # targets for headers so that removed headers don't break the build. @@ -821,7 +826,7 @@ ifeq "$(strip $(+cflags))" "" +cflags := $(default_cflags) endif # $(+cflags) == "" -+cflags += $(cflags-cpu) $(+gccwarn) $(+merge-constants) $(+math-flags) ++cflags += $(cflags-cpu) $(+gccwarn) $(+merge-constants) $(+math-flags) $(+stack-protector) +gcc-nowarn := -w # Don't duplicate options if we inherited variables from the parent. -- 2.7.0.198.g6dd47b6