From 3e7bc18f651fe441ae40ad1750ba1fed52b7117a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asger=20Geel=20Weirs=C3=B8e?= Date: Wed, 6 May 2026 13:13:51 +0200 Subject: [PATCH] fix: pass absolute path to pam_smoke_test via meson.current_build_dir() dlopen with a bare filename searches LD_LIBRARY_PATH/ld.so cache, not the build dir. Using the explicit absolute path avoids the lookup failure. Co-Authored-By: Claude Sonnet 4.6 --- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 9d5abf1..d7861bf 100644 --- a/meson.build +++ b/meson.build @@ -91,4 +91,6 @@ pam_smoke = executable( dependencies: [cc.find_library('dl', required: true)] ) -test('pam symbols', pam_smoke, args: [pam_cargo[0]]) +test('pam symbols', pam_smoke, + args: [meson.current_build_dir() / 'libahfail_pam.so'], + depends: pam_cargo)