From 0631a029b06818381ad5dbdd7b2d99a6a0ed15e4 Mon Sep 17 00:00:00 2001 From: Lars Kanis Date: Thu, 12 Feb 2026 14:25:18 +0100 Subject: [PATCH] Remove enforced rpath addition when no rpath is configured That code was introduced 13 years ago. I think it can be removed now, since this was an issue in an old ruby version. If the rpath is configured in ruby, then dir_config will use it, otherwise it shouldn't. Fixes #183 --- ext/extconf.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ext/extconf.rb b/ext/extconf.rb index d13634101..99207d234 100644 --- a/ext/extconf.rb +++ b/ext/extconf.rb @@ -218,13 +218,6 @@ def install dlldir = libdir end - # Try to use runtime path linker option, even if RbConfig doesn't know about it. - # The rpath option is usually set implicit by dir_config(), but so far not - # on MacOS-X. - if dlldir && RbConfig::CONFIG["RPATHFLAG"].to_s.empty? - append_ldflags "-Wl,-rpath,#{dlldir.quote}" - end - if /mswin/ =~ RUBY_PLATFORM $libs = append_library($libs, 'ws2_32') end