diff options
| author | Sam James <sam@gentoo.org> | 2025-06-16 15:59:56 +0100 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2025-06-16 16:02:01 +0100 |
| commit | 8cd3b643c72e58b9889ad28f5dac94b5468d58b6 (patch) | |
| tree | 32a3a4d9668637b28e41fc58b2744e1c3e891384 /dev-lang/ruby/ruby-3.2.8.ebuild | |
| parent | b17325eb288ac7ce65d4609a66973bfb9ecc0afe (diff) | |
| download | gentoo-8cd3b643c72e58b9889ad28f5dac94b5468d58b6.tar.gz gentoo-8cd3b643c72e58b9889ad28f5dac94b5468d58b6.tar.bz2 gentoo-8cd3b643c72e58b9889ad28f5dac94b5468d58b6.zip | |
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>
Diffstat (limited to 'dev-lang/ruby/ruby-3.2.8.ebuild')
| -rw-r--r-- | dev-lang/ruby/ruby-3.2.8.ebuild | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/dev-lang/ruby/ruby-3.2.8.ebuild b/dev-lang/ruby/ruby-3.2.8.ebuild index ed72e0287128..c43cff6afaed 100644 --- a/dev-lang/ruby/ruby-3.2.8.ebuild +++ b/dev-lang/ruby/ruby-3.2.8.ebuild @@ -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) |
