Blame SOURCES/ruby-3.0.3-fiddle-1.0.8-Rely-on-hard-coded-lib-name-to-detect-glibc.patch

0bc38e
From a267a40be7844224c5f000530bd3e8e906f1acea Mon Sep 17 00:00:00 2001
0bc38e
From: Jeremy Evans <code@jeremyevans.net>
0bc38e
Date: Wed, 10 Mar 2021 13:48:00 -0800
0bc38e
Subject: [PATCH] Do not use a libdir for glibc, it breaks Linux PPC64 (#70)
0bc38e
0bc38e
Fixes [Bug #12666]
0bc38e
---
0bc38e
 test/fiddle/helper.rb | 4 ++--
0bc38e
 1 file changed, 2 insertions(+), 2 deletions(-)
0bc38e
0bc38e
diff --git a/test/fiddle/helper.rb b/test/fiddle/helper.rb
0bc38e
index f38f903..a6e2019 100644
0bc38e
--- a/test/fiddle/helper.rb
0bc38e
+++ b/test/fiddle/helper.rb
0bc38e
@@ -20,8 +20,8 @@
0bc38e
     # 64-bit ruby
0bc38e
     libdir = '/lib64' if File.directory? '/lib64'
0bc38e
   end
0bc38e
-  libc_so = File.join(libdir, "libc.so.6")
0bc38e
-  libm_so = File.join(libdir, "libm.so.6")
0bc38e
+  libc_so = "libc.so.6"
0bc38e
+  libm_so = "libm.so.6"
0bc38e
 when /mingw/, /mswin/
0bc38e
   require "rbconfig"
0bc38e
   crtname = RbConfig::CONFIG["RUBY_SO_NAME"][/msvc\w+/] || 'ucrtbase'