Skip to content

RPATHs to external libraries that aren't in the default library search path #3882

@prlw1

Description

@prlw1

Tried using meson 78f1ef8 to build donf.
ninja generates the correct binary:

$ objdump -x dconf-0.28.0/output/bin/dconf | more
...
Dynamic Section:
  NEEDED               libdconf.so.1
  NEEDED               libgio-2.0.so.0
  NEEDED               libgobject-2.0.so.0
  NEEDED               libglib-2.0.so.0
  NEEDED               libc.so.12
  RPATH                /usr/pkg/lib:/usr/X11R7/lib
...

Then the RPATH disappears on install:

$ dconf
Shared object "libdconf.so.1" not found
$ objdump -x `which dconf` | grep -i rpath
$ ls -l /usr/pkg/lib/libdconf.so.1
lrwxr-xr-x  1 root  wheel  17 Jul  9 15:05 /usr/pkg/lib/libdconf.so.1 -> libdconf.so.1.0.0
$

(running dconf-0.28.0/output/bin/dconf works)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions