Project

General

Profile

Bug #7132

make sure MPS libraries are always used from the adjunct

Added by Hans Rosenfeld about 4 years ago. Updated 8 months ago.

Status:
New
Priority:
Normal
Category:
cmd - userland programs
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.

History

#1

Updated by Andrew Stormont 8 months ago

It's perfectly valid to pass -L$(ADJUNCT_PROTO)/$(MPSDIR) and -R$(MPSDIR). That's how we solved this problem.

Also available in: Atom PDF