Blame SOURCES/2-add-strong-stack-prot.patch

cafc18
--- configure.orig	2022-02-08 17:54:38.857757054 +0100
cafc18
+++ configure	2022-02-08 18:09:34.392172703 +0100
cafc18
@@ -142,15 +142,15 @@ includedir=${includedir:-$prefix/include
cafc18
 mandir=${mandir:-$prefix/share/man}
cafc18
cafc18
 # define CFLAGS and LDFLAGS if no environment variables defined
cafc18
-if test -z ${CFLAGS}; then
cafc18
-  CFLAGS='-Wall -Werror -std=gnu99 -pedantic -fstack-protector -fPIE -fPIC -fno-strict-overflow -fno-delete-null-pointer-checks -fwrapv'
cafc18
+if test -z "${CFLAGS}"; then
cafc18
+  CFLAGS="-Wall -Werror -std=gnu99 -pedantic -fstack-protector-strong -fPIE -fPIC -fno-strict-overflow -fno-delete-null-pointer-checks -fwrapv"
cafc18
 else
cafc18
-  CFLAGS+=" -Wall -Werror -std=gnu99 -pedantic -fstack-protector -fPIE -fPIC"
cafc18
+  CFLAGS+=" -Wall -Werror -std=gnu99 -pedantic -fstack-protector-strong -fPIE -fPIC"
cafc18
 fi
cafc18
-if test -z ${LDFLAGS}; then
cafc18
-  LDFLAGS='-fstack-protector -fPIC -pie -z relro -z now -Wl,-z,noexecstack'
cafc18
+if test -z "${LDFLAGS}"; then
cafc18
+  LDFLAGS="-fstack-protector-strong -fPIC -pie -z relro -z now -Wl,-z,noexecstack"
cafc18
 else
cafc18
-  LDFLAGS+=" -fstack-protector -fPIC -pie -z relro -z now -Wl,-z,noexecstack"
cafc18
+  LDFLAGS+=" -fstack-protector-strong -fPIC -pie -z relro -z now -Wl,-z,noexecstack"
cafc18
 fi
cafc18
cafc18
 # try to build 32 or 64 bit system binary