Code

Don't set -rpath for ruby modules.
authorBernd Zeimetz <bzed@debian.org>
Sun, 10 Feb 2008 13:45:31 +0000 (14:45 +0100)
committerBernd Zeimetz <bzed@debian.org>
Sun, 10 Feb 2008 13:45:31 +0000 (14:45 +0100)
debian/patches/no-rpath-for-ruby [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/no-rpath-for-ruby b/debian/patches/no-rpath-for-ruby
new file mode 100644 (file)
index 0000000..3d98ba7
--- /dev/null
@@ -0,0 +1,15 @@
+Index: rrdtool/bindings/ruby/extconf.rb
+===================================================================
+--- rrdtool.orig/bindings/ruby/extconf.rb      2008-02-10 14:43:00.000000000 +0100
++++ rrdtool/bindings/ruby/extconf.rb   2008-02-10 14:43:08.000000000 +0100
+@@ -3,9 +3,7 @@
+ require 'mkmf'
+-if /linux/ =~ RUBY_PLATFORM
+-   $LDFLAGS += '-Wl,--rpath -Wl,$(EPREFIX)/lib'
+-elsif /solaris/ =~ RUBY_PLATFORM
++if /solaris/ =~ RUBY_PLATFORM
+    $LDFLAGS += '-R$(EPREFIX)/lib'
+ elsif /hpux/ =~ RUBY_PLATFORM
+    $LDFLAGS += '+b$(EPREFIX)/lib'
index 1a60bf4ba085ebee1eea0a005b1308431bc6e7dc..770c8456d9450e7812d292a6f54e6f411fa3902e 100644 (file)
@@ -1 +1,2 @@
 setup.py-module-name
+no-rpath-for-ruby