mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user