diff --git a/bin/smartlink b/bin/smartlink index 7550674f2e8cc09297d2c26e5867b1ca9f1b7ded..8945e1e1285d9b183341d6b499732c16c3f5632c 100755 --- a/bin/smartlink +++ b/bin/smartlink @@ -161,7 +161,12 @@ if test x$# != x0 ; then SunOS\ 5.*) LDOPTS="$LDOPTS -R$RPATH" ;; - Linux\ 2.*) + Linux\ 1.*) + LD_LIBRARY_PATH="$RPATH" + LD_RUN_PATH="$RPATH" + export LD_LIBRARY_PATH LD_RUN_PATH + ;; + Linux\ *) if test x$LINKING != xno -a "x$RPATH" != x ; then LDOPTS="$LDOPTS -Wl,-rpath,$RPATH" fi