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