Bug 8641 - rpath set on all 64-bit programs
Summary: rpath set on all 64-bit programs
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Build system (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: MediumPrio
Assignee: Bugzilla mail exporter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-11 12:41 CEST by Pierre Ossman
Modified: 2025-07-15 13:51 CEST (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2025-07-11 12:41:21 CEST
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
Comment 1 Pierre Ossman cendio 2025-07-11 12:44:27 CEST
The extra rpath nonsense can also cause linking issues, like bug 8441.
Comment 2 Pierre Ossman cendio 2025-07-11 12:45:25 CEST
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.
Comment 3 Pierre Ossman cendio 2025-07-11 13:41:21 CEST
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 ;

Note You need to log in before you can comment on or make changes to this bug.