File: no-rpath-for-ruby

package info (click to toggle)
rrdtool 1.7.2-4.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,060 kB
  • sloc: ansic: 38,129; sh: 6,352; perl: 1,235; cs: 652; makefile: 547; python: 139; ruby: 61; awk: 30
file content (25 lines) | stat: -rw-r--r-- 770 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: Disable rpath in ruby bindings
 This fixes lintian warning binary-or-shlib-defines-rpath.
Author: Bernd Zeimetz <bzed@debian.org>
Forwarded: no
Last-Update: 2015-08-09

--- rrdtool-1.5.4.orig/bindings/ruby/extconf.rb
+++ rrdtool-1.5.4/bindings/ruby/extconf.rb
@@ -3,16 +3,6 @@
 
 require 'mkmf'
 
-if /linux/ =~ RUBY_PLATFORM
-   $LDFLAGS += ' -Wl,--rpath -Wl,$(EPREFIX)/lib'
-elsif /solaris/ =~ RUBY_PLATFORM
-   $LDFLAGS += ' -R$(EPREFIX)/lib'
-elsif /hpux/ =~ RUBY_PLATFORM
-   $LDFLAGS += ' +b$(EPREFIX)/lib'
-elsif /aix/ =~ RUBY_PLATFORM
-   $LDFLAGS += ' -blibpath:$(EPREFIX)/lib'
-end
-
 dir_config("rrd",['$(ABS_TOP_BUILDDIR)/src', '$(ABS_TOP_SRCDIR)/src'],'$(ABS_TOP_BUILDDIR)/src/.libs')
 have_library("rrd", "rrd_create")
 create_makefile("RRD")