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

net-misc/rsync: 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>

 net-misc/rsync/rsync-3.3.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-misc/rsync/rsync-3.3.0-r1.ebuild 
b/net-misc/rsync/rsync-3.3.0-r1.ebuild
index 3a11a5ea8845..2c4a1bb28ccb 100644
--- a/net-misc/rsync/rsync-3.3.0-r1.ebuild
+++ b/net-misc/rsync/rsync-3.3.0-r1.ebuild
@@ -109,7 +109,7 @@ src_prepare() {
 
 src_configure() {
        # Should be fixed upstream in next release (>3.3.0) (bug #943745)
-       append-cflags -std=gnu17
+       append-cflags $(test-flags-CC -std=gnu17)
 
        local myeconfargs=(
                --with-rsyncd-conf="${EPREFIX}"/etc/rsyncd.conf

Reply via email to