From f1aa5cca67470012eb39d211d15bb02fa474560e Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Mon, 19 May 2025 13:48:17 +0200 Subject: dev-lang/ruby: fix compilation with USE=socks5 Bug: https://bugs.gentoo.org/945502 Signed-off-by: Hans de Graaff --- dev-lang/ruby/ruby-3.2.6-r4.ebuild | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dev-lang/ruby/ruby-3.2.6-r4.ebuild') diff --git a/dev-lang/ruby/ruby-3.2.6-r4.ebuild b/dev-lang/ruby/ruby-3.2.6-r4.ebuild index 65d3f07e2a18..6344b359b053 100644 --- a/dev-lang/ruby/ruby-3.2.6-r4.ebuild +++ b/dev-lang/ruby/ruby-3.2.6-r4.ebuild @@ -168,6 +168,10 @@ 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) -- cgit v1.2.3