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

John Paul Adrian Glaubitz <[email protected]>
Newsgroups gmane.linux.debian.ports.ia64,gmane.linux.debian.ports.alpha,gmane.linux.debian.ports.hppa
Message-ID <[email protected]>
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 - [email protected]
`. `'   Freie Universitaet Berlin - [email protected]
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
0001-build-fix-flag-detections-for-gcc.patch (text/x-patch, 965 B)
From 4b765d6c3a994fe15abf2b9861109373ffe36322 Mon Sep 17 00:00:00 2001
From: "Fabio M. Di Nitto" <[email protected]>
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 <[email protected]>
---
 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.