1,19 → 1,16 |
#! /bin/sh /usr/share/dpatch/dpatch-run |
## 02_smartlink_rpath.dpatch |
## |
## All lines beginning with `## DP:' are a description of the patch. |
## DP: Make smartlink not use -rpath |
Description: Make smartlink not use -rpath |
|
@DPATCH@ |
--- a/bin/smartlink |
+++ b/bin/smartlink |
@@ -162,9 +162,8 @@ if test x$# != x0 ; then |
@@ -161,10 +161,9 @@ if test x$# != x0 ; then |
SunOS\ 5.*) |
LDOPTS="$LDOPTS -R$RPATH" |
;; |
Linux\ 2.*) |
- Linux\ 2.*) |
- if test x$LINKING != xno -a "x$RPATH" != x ; then |
- LDOPTS="$LDOPTS -Wl,-rpath,$RPATH" |
- fi |
+ Linux\ 2.*|Linux\ 3.*) |
+ LD_LIBRARY_PATH="$RPATH" |
+ export LD_LIBRARY_PATH |
;; |