The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/rubygem-pg#77d1aebb033b01b5052d9a91cb5491c746928200
18 lines
711 B
Diff
18 lines
711 B
Diff
diff --git a/ext/extconf.rb b/ext/extconf.rb
|
|
--- a/ext/extconf.rb
|
|
+++ b/ext/extconf.rb
|
|
@@ -33,13 +33,6 @@
|
|
incdir = `"#{pgconfig}" --includedir`.chomp
|
|
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"
|