How to make automake, libtool and rpmbuild work together

I am trying to create the RPM of my package, which is created using automake and libtool , and I ran into a problem: rpmbuild aborts the detection that the installed programs of the package contain the installation directory path for shared packages (due to automake using the -rpath ld option).

I understand that rpmbuild does this to ensure that the package will move. My question is what to do about it. I could eliminate the use of shared libraries (and lose their benefits), or I could tell automake not to install shared libraries (which would prevent him from using the -rpath ), and then install them anyway. The cost of this last option is that it will require the user to always have the correct environment variable LD_LIBRARY_PATH , plus it seems a bit shabby.

Is there any other option?

What would you do?

+4
source share
1 answer

The details of this depend on the particular build system of the package and which version of libtool it uses.

Here are the relevant Fedora packaging guides: http://fedoraproject.org/wiki/PackagingGuidelines#Beware_of_Rpath

Here is a similar page from Debian: http://wiki.debian.org/RpathIssue

Wikipedia also has some relevant links: http://en.wikipedia.org/wiki/Rpath_(linking )

So, you need to try a few of the suggested methods to get rid of rpath, but which one will work depends on the specifics of your package.

+3
source

All Articles