From 6be7803d9a82fd6bbadf7df6de0ae5472038ed88 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Sun, 10 Jun 2012 10:50:18 +0200 Subject: [PATCH 1/1] +--nomcheck Drop ineffective (+incompatible now) -D_FORTIFY_SOURCE=2. --- bin/errs12 | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/bin/errs12 b/bin/errs12 index 4970709..1f8ac85 100755 --- a/bin/errs12 +++ b/bin/errs12 @@ -18,7 +18,7 @@ if gcc --version|perl -ne 'exit(!(/(\d+)\.(\d+)/&&($1>4||($1==4&&$2>=7))));';the else debug="-g2" fi -ldflags="-lmcheck" +mcheck="-lmcheck" fast=false readline="" @@ -65,7 +65,12 @@ do if [ "$1" = "-s" ];then # -O0 is important to override GCC -O2. debug="-O0 -s" - #ldflags="" + shift + continue + fi + + if [ "$1" = "--nomcheck" ];then + mcheck="" shift continue fi @@ -114,9 +119,10 @@ rm -f errs1.ok test -z "$CC" && CC=gcc : >errs1.c + # -Wp,-D_FORTIFY_SOURCE=2: /usr/include/features.h:329:3: error: #warning _FORTIFY_SOURCE requested but disabled [-Werror=cpp] for flags in \ - "$debug -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4" \ - "$debug -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions" \ + "$debug -pipe -Wall -fexceptions -fstack-protector --param=ssp-buffer-size=4" \ + "$debug -pipe -Wall -fexceptions" \ "" \ ;do if [ -z "$flags" ];then @@ -138,7 +144,7 @@ rm -f errs1.ok export GCJFLAGS="$flags" export CFLAGS_FOR_TARGET="$flags" export CXXFLAGS_FOR_TARGET="$flags" - export LDFLAGS="$ldflags" + export LDFLAGS="$mcheck" time nice "$configure" $target $targets $customss $readline --enable-debug --disable-sim --enable-gold --enable-plugins $maintainer $werror --with-separate-debug-dir=/usr/lib/debug "$@" -- 1.8.3.1