1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
From: Dmitry Borodaenko <angdraug@gmail.com>
Date: Sat, 10 Aug 2013 17:24:26 -0700
Subject: do not set rpath
---
ext/extconf.rb | 7 -------
1 file changed, 7 deletions(-)
Index: ruby-pg/ext/extconf.rb
===================================================================
--- ruby-pg.orig/ext/extconf.rb
+++ ruby-pg/ext/extconf.rb
@@ -30,12 +30,6 @@ else
libdir = `"#{pgconfig}" --libdir`.chomp
dir_config 'pg', incdir, libdir
- # 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 RbConfig::CONFIG["RPATHFLAG"].to_s.empty? && try_link('int main() {return 0;}', " -Wl,-rpath,#{libdir}")
- $LDFLAGS << " -Wl,-rpath,#{libdir}"
- end
else
$stderr.puts "No pg_config... trying anyway. If building fails, please try again with",
" --with-pg-config=/path/to/pg_config"
|