From 65f9a43b5e56f5a9ed2106ed9522b12849b081d4 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 31 Dec 2014 08:55:09 +0100 Subject: [PATCH] Fallback to -fstack-protector if -strong is not supported. --- NEWS | 2 +- configure | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 0f9c81b4..fdf0d6c2 100644 --- a/NEWS +++ b/NEWS @@ -11,7 +11,7 @@ xbps-0.43 (???): pkgdb to match any virtualpkg declared there. Regression introduced in 0.42. * configure: build with -fstack-protector-strong if supported by the compiler, - and fallback to -fstack-protector-all otherwise. + and fallback to -fstack-protector otherwise. * xbps-pkgdb(8): the `packaged-with` string obj is removed from pkgdb. Since 0.42 that object is unnecessary and is being obsoleted. diff --git a/configure b/configure index 3a07f524..1b09c38c 100755 --- a/configure +++ b/configure @@ -271,7 +271,7 @@ check_compiler_flag "inline-functions" f CFLAGS check_compiler_flag stack-protector-strong f CFLAGS if [ $? -ne 0 ]; then - check_compiler_flag stack-protector-all f CFLAGS + check_compiler_flag stack-protector f CFLAGS if [ $? -eq 0 ]; then if [ "$CC" = "gcc" ]; then check_compiler_flag "param ssp-buffer-size=1" - CFLAGS