File: 0001-do-not-set-rpath.patch

package info (click to toggle)
ruby-pg 1.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,316 kB
  • sloc: ansic: 9,403; ruby: 3,160; makefile: 10
file content (22 lines) | stat: -rw-r--r-- 640 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Dmitry Borodaenko <angdraug@gmail.com>
Date: Sat, 10 Aug 2013 17:24:26 -0700
Subject: do not set rpath
Updated by: Abhijith PA <abhijith@openmailbox.org>
Date: 23/11/2016

--- a/ext/extconf.rb
+++ b/ext/extconf.rb
@@ -218,13 +218,6 @@ else
 		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