Every 64-bit program we have in cenbuild has rpath set on it needlessly. This is considered a bad thing that can cause issues: https://wiki.debian.org/RpathIssue Modern libtool has a workaround for this, but it is broken and doesn't work on systems that have a non-standard library directory (e.g. /usr/lib64). E.g.: > $ objdump -x /opt/cendio-build/arch/x86_64/usr/bin/asn1Coding | grep RPATH > RPATH /usr/lib64
The extra rpath nonsense can also cause linking issues, like bug 8441.
It seems that we can override libtool's detection of runtime library directories by setting $LT_SYS_LIBRARY_PATH. We could probably set this implicitly in all our builds to avoid this issue.
Turns out that this is exactly what Fedora does in their RPM macros: > LT_SYS_LIBRARY_PATH="${LT_SYS_LIBRARY_PATH:-%_libdir:}" ; export LT_SYS_LIBRARY_PATH ;