From ed036669fba0dd22c88d1028a8046a9003cb42b3 Mon Sep 17 00:00:00 2001 From: Bernd Zeimetz Date: Sun, 10 Feb 2008 14:45:31 +0100 Subject: [PATCH] Don't set -rpath for ruby modules. --- debian/patches/no-rpath-for-ruby | 15 +++++++++++++++ debian/patches/series | 1 + 2 files changed, 16 insertions(+) create mode 100644 debian/patches/no-rpath-for-ruby diff --git a/debian/patches/no-rpath-for-ruby b/debian/patches/no-rpath-for-ruby new file mode 100644 index 0000000..3d98ba7 --- /dev/null +++ b/debian/patches/no-rpath-for-ruby @@ -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' diff --git a/debian/patches/series b/debian/patches/series index 1a60bf4..770c845 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ setup.py-module-name +no-rpath-for-ruby -- 2.30.2