[Xapian-devel] Fedora FC6 rpm, howto disable -rpath?

Olly Betts olly at survex.com
Sat Nov 4 18:15:19 GMT 2006


On Sat, Nov 04, 2006 at 12:37:52PM -0500, Neal Becker wrote:
> On Saturday 04 November 2006 12:31 pm, Olly Betts wrote:
> > readelf -d examples/delve|grep RPATH
> First of all, the original problem is:
> 
> * 'check-rpaths' is part of 'rpmdevtools'.
> *
> *******************************************************************************
> ERROR   0001: file '/usr/bin/xapian-tcpsrv' contains a standard 
> rpath '/usr/lib64' in [/usr/lib64]
> [... more errors for each binary...]
> 
> examples/delve is a shell script.  That's not what you meant I suppose.

Oh sorry, you need to check examples/.lib/delve instead.  I imagine it
will say "/usr/lib64", but it's worth checking as I don't have
check-rpaths so it's good to be sure we're not using tools that somehow
give different answers!

> No, it's not fixed by autoreconf.  Running make I still get -rpath:
> 
> /bin/sh ./libtool --tag=CXX --mode=link 
> g++ -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-multichar -Wno-long-long -fno-gnu-keywords -Wundef -Wshadow -g -O2   -o 
> libxapian.la -rpath /usr/lib64 -no-undefined -version-info 13:0:0 dummy.lo 
> common/libcommon.la backends/libbackend.la matcher/libmatcher.la 
> languages/liblanguages.la api/libapi.la net/libnet.la 
> queryparser/libqueryparser.la 

It's the libtool script which decides what to do with the "-rpath"
option, so "-rpath" here doesn't mean anything really.  What's important
is the commands which the libtool script runs (and so what ends up in
the binaries which are built for installation).

Cheers,
    Olly



More information about the Xapian-devel mailing list