Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meson > 0.56.0 doesn't write RPATH properly. #8561

Open
dmilith opened this issue Mar 20, 2021 · 2 comments
Open

Meson > 0.56.0 doesn't write RPATH properly. #8561

dmilith opened this issue Mar 20, 2021 · 2 comments

Comments

@dmilith
Copy link

dmilith commented Mar 20, 2021

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
@arichardson
Copy link

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.

@tristan957
Copy link
Contributor

Is this still an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants