dev-lang/ruby: fix passing -std=gnu17

We have to do it in CFLAGS, not C{,XX}FLAGS, otherwise Clang complains. Also,
pass it consistently for now.

Closes: https://bugs.gentoo.org/958248
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-06-16 15:59:56 +01:00
parent b17325eb28
commit 8cd3b643c7
8 changed files with 20 additions and 28 deletions

View File

@@ -156,6 +156,9 @@ src_configure() {
# In many places aliasing rules are broken; play it safe
# 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 and bug #945502
append-cflags -std=gnu17
# Workaround for bug #938302
if use systemtap && has_version "dev-debug/systemtap[-dtrace-symlink(+)]" ; then
@@ -168,10 +171,6 @@ src_configure() {
# set and socks library is present, so need to unset
# SOCKS_SERVER in that case.
unset SOCKS_SERVER
# The socks code has a function prototype without parameters,
# bug #945502
append-cflags -std=gnu17
fi
# Increase GC_MALLOC_LIMIT if set (default is 8000000)

View File

@@ -157,6 +157,9 @@ src_configure() {
# In many places aliasing rules are broken; play it safe
# 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 and bug #945502
append-cflags -std=gnu17
# Workaround for bug #938302
if use systemtap && has_version "dev-debug/systemtap[-dtrace-symlink(+)]" ; then
@@ -169,10 +172,6 @@ src_configure() {
# set and socks library is present, so need to unset
# SOCKS_SERVER in that case.
unset SOCKS_SERVER
# The socks code has a function prototype without parameters,
# bug #945502
append-cflags -std=gnu17
fi
# Increase GC_MALLOC_LIMIT if set (default is 8000000)

View File

@@ -164,6 +164,9 @@ src_configure() {
# In many places aliasing rules are broken; play it safe
# 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 and bug #945502
append-cflags -std=gnu17
# Workaround for bug #938302
if use systemtap && has_version "dev-debug/systemtap[-dtrace-symlink(+)]" ; then
@@ -176,10 +179,6 @@ src_configure() {
# set and socks library is present, so need to unset
# SOCKS_SERVER in that case.
unset SOCKS_SERVER
# The socks code has a function prototype without parameters,
# bug #945502
append-cflags -std=gnu17
fi
# Increase GC_MALLOC_LIMIT if set (default is 8000000)

View File

@@ -161,6 +161,9 @@ src_configure() {
# In many places aliasing rules are broken; play it safe
# 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 and bug #945502
append-cflags -std=gnu17
# Workaround for bug #938302
if use systemtap && has_version "dev-debug/systemtap[-dtrace-symlink(+)]" ; then

View File

@@ -161,10 +161,9 @@ src_configure() {
# In many places aliasing rules are broken; play it safe
# 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
# using std=gnu23, bug #945643 and bug #945502
append-cflags -std=gnu17
# Workaround for bug #938302
if use systemtap && has_version "dev-debug/systemtap[-dtrace-symlink(+)]" ; then
@@ -177,10 +176,6 @@ src_configure() {
# set and socks library is present, so need to unset
# SOCKS_SERVER in that case.
unset SOCKS_SERVER
# The socks code has a function prototype without parameters,
# bug #945502
append-cflags -std=gnu17
fi
# Increase GC_MALLOC_LIMIT if set (default is 8000000)

View File

@@ -175,6 +175,9 @@ src_configure() {
# In many places aliasing rules are broken; play it safe
# 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 and bug #945502
append-cflags -std=gnu17
# Workaround for bug #938302
if use systemtap && has_version "dev-debug/systemtap[-dtrace-symlink(+)]" ; then

View File

@@ -175,10 +175,9 @@ src_configure() {
# In many places aliasing rules are broken; play it safe
# 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
append-cflags -std=gnu17
# Workaround for bug #938302
if use systemtap && has_version "dev-debug/systemtap[-dtrace-symlink(+)]" ; then

View File

@@ -175,10 +175,9 @@ src_configure() {
# In many places aliasing rules are broken; play it safe
# 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
# using std=gnu23, bug #945643 and bug #945502
append-cflags -std=gnu17
# Workaround for bug #938302
if use systemtap && has_version "dev-debug/systemtap[-dtrace-symlink(+)]" ; then
@@ -191,10 +190,6 @@ src_configure() {
# set and socks library is present, so need to unset
# SOCKS_SERVER in that case.
unset SOCKS_SERVER
# The socks code has a function prototype without parameters,
# bug #945502
append-cflags -std=gnu17
fi
# Increase GC_MALLOC_LIMIT if set (default is 8000000)