dev-lang/ruby: use -std=gnu17

This avoids a compilation issue in ext/io/console.c when using certain
CFLAGS.

Bug: https://bugs.gentoo.org/945643
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2025-04-25 19:35:02 +02:00
parent bde4b48ac5
commit a489c48212
2 changed files with 8 additions and 0 deletions

View File

@@ -162,6 +162,10 @@ src_configure() {
# as it's risky with newer compilers to leave it as it is.
append-flags -fno-strict-aliasing
# Avoid a compile error with certain USE flag combinations when
# using std=gnu23, bug #945643.
append-flags -std=gnu17
# Workaround for bug #938302
if use systemtap && has_version "dev-debug/systemtap[-dtrace-symlink(+)]" ; then
export DTRACE="${BROOT}"/usr/bin/stap-dtrace

View File

@@ -176,6 +176,10 @@ src_configure() {
# as it's risky with newer compilers to leave it as it is.
append-flags -fno-strict-aliasing
# Avoid a compile error with certain USE flag combinations when
# using std=gnu23, bug #945643.
append-flags -std=gnu17
# Workaround for bug #938302
if use systemtap && has_version "dev-debug/systemtap[-dtrace-symlink(+)]" ; then
export DTRACE="${BROOT}"/usr/bin/stap-dtrace