From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1697602-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 8C3E5158232
	for <garchives@archives.gentoo.org>; Fri,  6 Dec 2024 16:04:32 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id AEF87E0978;
	Fri,  6 Dec 2024 16:04:31 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 86814E0978
	for <gentoo-commits@lists.gentoo.org>; Fri,  6 Dec 2024 16:04:31 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 804AA341DD0
	for <gentoo-commits@lists.gentoo.org>; Fri,  6 Dec 2024 16:04:30 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 15BFCAED
	for <gentoo-commits@lists.gentoo.org>; Fri,  6 Dec 2024 16:04:29 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1733501049.e2d223e462cc3c8c650b0cb27f851725edb7c310.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/gpm/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sys-libs/gpm/gpm-1.20.7-r6.ebuild
X-VCS-Directories: sys-libs/gpm/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: e2d223e462cc3c8c650b0cb27f851725edb7c310
X-VCS-Branch: master
Date: Fri,  6 Dec 2024 16:04:29 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 7fb9ce64-444c-4847-a8b5-9651264df424
X-Archives-Hash: 7df38489d63a995d919e05e5abe02f71

commit:     e2d223e462cc3c8c650b0cb27f851725edb7c310
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Dec  6 16:03:29 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Dec  6 16:04:09 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2d223e4

sys-libs/gpm: pass -std=gnu17 conditionally

Old compilers during Prefix bootstrap may not support it but they also
won't be defaulting to C23 so that's fine.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-libs/gpm/gpm-1.20.7-r6.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-libs/gpm/gpm-1.20.7-r6.ebuild b/sys-libs/gpm/gpm-1.20.7-r6.ebuild
index 5c3ed388e5d4..b67d1fed55b9 100644
--- a/sys-libs/gpm/gpm-1.20.7-r6.ebuild
+++ b/sys-libs/gpm/gpm-1.20.7-r6.ebuild
@@ -73,7 +73,7 @@ src_prepare() {
 
 multilib_src_configure() {
 	# https://github.com/telmich/gpm/issues/48
-	append-cflags -std=gnu17
+	append-cflags $(test-flags-CC -std=gnu17)
 
 	# bug #885323
 	# src/headers/daemon.h:175:25: error: type of ‘cinfo’ does not match original declaration [-Werror=lto-type-mismatch]