[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: kronosnet: FTBFS on alpha, hppa and ia64 due to uncondtional use of -fstack-protector



Control: tags -1 +patch

Upstream has already come up with a patch [1] to fix the issue, see attached.

Adrian

> [1] https://github.com/kronosnet/kronosnet/pull/372

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
From 4b765d6c3a994fe15abf2b9861109373ffe36322 Mon Sep 17 00:00:00 2001
From: "Fabio M. Di Nitto" <fdinitto@redhat.com>
Date: Tue, 30 Nov 2021 10:32:18 +0100
Subject: [PATCH] [build] fix flag detections for gcc

Resolves: https://github.com/kronosnet/kronosnet/issues/371

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
---
 configure.ac | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index d9adc50..f90baca 100644
--- a/configure.ac
+++ b/configure.ac
@@ -186,10 +186,7 @@ AM_CONDITIONAL([BUILD_RUST_BINDINGS], [test x$enable_rust_bindings = xyes])
 # args. Global CPPFLAGS are ignored during this test.
 cc_supports_flag() {
 	saveCPPFLAGS="$CPPFLAGS"
-	CPPFLAGS="$@"
-	if echo $CC | grep -q clang; then
-		CPPFLAGS="-Werror $CPPFLAGS"
-	fi
+	CPPFLAGS="-Werror $@"
 	AC_MSG_CHECKING([whether $CC supports "$@"])
 	AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
 			  [RC=0; AC_MSG_RESULT([yes])],
-- 
2.34.0


Reply to: