I am attempting to build a RPM for GNU libiconv
I have no problem compiling the source, but when I install to a temporary location the full temporary path of the shared library gets hard-coded into the iconv executable.
I tried adding --disable-rpath
to the configure command as it says "do not hardcode runtime library paths" but this doesn't seem to work.
My build command looks like this:
./configure --prefix=/usr/local --disable-rpath && \
make && \
make DESTDIR=/tmp/path install
running ldd /tmp/path/usr/local/bin/iconv
I can see the path to /tmp/path/usr/local/lib/libiconv.so.2
is hard-coded
How can I ensure the executable looks for the libraries in their final destination at /usr/local/lib
rather than looking for them where they were built?