You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I build a lot of bundles using my "Sofin" script. I've been using meson 0.56.0 for a while now, I did upgrade it yesterday to 0.57.1 and it caused my custom PREFIX'ed bundles to fail to "see" linked libraries. After readelf -d /path/to/my/built/library I figured out that RPATH field is just empty for software built with Meson > 0.56.0.
To Reproduce
Just upgrade to Meson 0.57.1 and build some software using Meson (like p11-kit or glib or any else using at least one external library dependencies) using custom PREFIX dir (out from /usr or /usr/local). Binaries/ libraries will be built fine, but ldd /path/to/my/built/bin/or/lib will show missing shared objects (and no RPATH field present in ELF header).
Expected behavior
Meson 0.56.0 works flawlessly here :) RPATH is present and the build works fine.
system parameters
OS: FreeBSD 12.2, x86_64
Python: 3.9.2
Ninja: 1.10.2
The text was updated successfully, but these errors were encountered:
I am also seeing that unlike CMake, meson does not automatically set rpath for dependencies that are linked in, unless I explicitly pass -Wl,-rpath,... in my LDFLAGS. Ideally it should also strip the --sysroot= prefix from those paths.
Describe the bug
I build a lot of bundles using my "Sofin" script. I've been using meson 0.56.0 for a while now, I did upgrade it yesterday to 0.57.1 and it caused my custom PREFIX'ed bundles to fail to "see" linked libraries. After
readelf -d /path/to/my/built/library
I figured out that RPATH field is just empty for software built with Meson > 0.56.0.To Reproduce
Just upgrade to Meson 0.57.1 and build some software using Meson (like p11-kit or glib or any else using at least one external library dependencies) using custom PREFIX dir (out from /usr or /usr/local). Binaries/ libraries will be built fine, but
ldd /path/to/my/built/bin/or/lib
will show missing shared objects (and no RPATH field present in ELF header).Expected behavior
Meson 0.56.0 works flawlessly here :) RPATH is present and the build works fine.
system parameters
The text was updated successfully, but these errors were encountered: