I'm trying to create an RPM of my package, which is built using automake
and libtool
, and I've encountered a problem: rpmbuild
aborts upon discovering that the installed programs of the package contain the pathname of the installation directory for the package's sharable libraries (due to automake
's use of the -rpath
option of ld
).
I understand that rpmbuild
does this in order to guarantee that the package is relocatable. My question is what to do about it. I could eliminate the use of sharable libraries (and lose their benefits) or I could tell automake
to not install the sharable libraries (which would stop it from using the -rpath
option) and then install them anyway. The cost of this latter option is that it would require that the user always have a correctly-set LD_LIBRARY_PATH
environment variable -- plus it seems like a bit of a kludge.
Is there another option?
What would you do?