How forbidden is RPATH?

Toshio Kuratomi toshio at
Sun Apr 30 06:08:33 UTC 2006

On Sat, 2006-04-29 at 21:08 -0500, Jason L Tibbitts III wrote:
> I'm reviewing a package (rapidsvn,
> that
> makes rpmlint complain:
> E: rapidsvn binary-or-shlib-defines-rpath /usr/bin/rapidsvn ['/usr/lib64']
> I have tried absolutely everything I can think of to get rid of this.
> Either it doesn't work or it breaks the build.
> Now rpmlint says this is an error, but
> says this is a minor issue.  So I'm not sure what to do; if the
> package can't be approved as is then could someone who actually
> understands autoconf and libtool (i.e. not me) take a look?
Here's the link line where the rpath is inserted::
g++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wall -g
-fexceptions -I/usr/lib64/wx/include/gtk2-unicode-release-2.6
-I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__
-o .libs/svncpptest svncpptest-main.o svncpptest-test_url.o
-L/pkgs/cvs/rapidsvn-0.9.1-2/rapidsvn-0.9.1/src/svncpp -L/usr/lib64
-lcppunit /pkgs/cvs/rapidsvn-0.9.1-2/rapidsvn-0.9.1/src/svncpp/.libs/ /usr/lib64/ /usr/lib64/ /usr/lib64/ /usr/lib64/ /usr/lib64/ /usr/lib64/ /usr/lib64/ -lpthread -ldl /usr/lib64/ -lldap -llber /usr/lib64/ /usr/lib64/ -Wl,--rpath -Wl,/usr/lib64

It's being added into the link line by libtool.  Here's how to get rid
of it::
  make LIBTOOL=/usr/bin/libtool

I've updated the wiki page to reflect that this may sometimes be the
best way to pass the LIBTOOL line into the build.

(And yes, it is best to avoid RPATHs whenever possible.)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the fedora-extras-list mailing list