Blame SOURCES/rubygem-pg-0.17.1-remove-rpath.patch
|
|
24c35d |
diff --git a/ext/extconf.rb b/ext/extconf.rb
|
|
|
24c35d |
--- a/ext/extconf.rb
|
|
|
24c35d |
+++ b/ext/extconf.rb
|
|
|
24c35d |
@@ -33,13 +33,6 @@
|
|
|
24c35d |
incdir = `"#{pgconfig}" --includedir`.chomp
|
|
|
24c35d |
libdir = `"#{pgconfig}" --libdir`.chomp
|
|
|
24c35d |
dir_config 'pg', incdir, libdir
|
|
|
24c35d |
-
|
|
|
24c35d |
- # Try to use runtime path linker option, even if RbConfig doesn't know about it.
|
|
|
24c35d |
- # The rpath option is usually set implicit by dir_config(), but so far not
|
|
|
24c35d |
- # on MacOS-X.
|
|
|
24c35d |
- if RbConfig::CONFIG["RPATHFLAG"].to_s.empty? && try_link('int main() {return 0;}', " -Wl,-rpath,#{libdir}")
|
|
|
24c35d |
- $LDFLAGS << " -Wl,-rpath,#{libdir}"
|
|
|
24c35d |
- end
|
|
|
24c35d |
else
|
|
|
24c35d |
$stderr.puts "No pg_config... trying anyway. If building fails, please try again with",
|
|
|
24c35d |
" --with-pg-config=/path/to/pg_config"
|