Actions
Bug #7132
openmake sure MPS libraries are always used from the adjunct
Start date:
2016-06-23
Due date:
% Done:
0%
Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
Description
The MPS libs live in a special directory in /usr/lib/mps. Some libs like libldap link against these and as such have a RPATH/RUNPATH for this directory.
This causes problems with linking those libs from the adjunct, because the adjunct flags won't (can't) affect the RPATH/RUNPATH in the existing adjunct libs. The result is that linking fails as ld looks at the MPS libs on the host system, not in the adjunct.
We cannot use $ORIGIN linking (we tried) as that is intentionally ignored by ld.so.1 for setuid apps, which in turn breaks sudo.
Updated by Andrew Stormont over 2 years ago
It's perfectly valid to pass -L$(ADJUNCT_PROTO)/$(MPSDIR) and -R$(MPSDIR). That's how we solved this problem.
Actions