mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 18:26:19 +01:00
tests/gutils-user-database: do not hardcode library name
Use build_tgt.full_path() and import('fs').name()
This commit is contained in:
parent
41c9c51080
commit
91b41f5234
@ -226,23 +226,22 @@ else
|
||||
'unix' : {},
|
||||
}
|
||||
if have_rtld_next and glib_build_shared
|
||||
getpwuid_preload = shared_library('getpwuid-preload',
|
||||
'getpwuid-preload.c',
|
||||
name_prefix : '',
|
||||
dependencies: libdl_dep,
|
||||
install_dir : installed_tests_execdir,
|
||||
install_tag : 'tests',
|
||||
install: installed_tests_enabled)
|
||||
|
||||
glib_tests += {
|
||||
'gutils-user-database' : {
|
||||
'depends' : [
|
||||
shared_library('getpwuid-preload',
|
||||
'getpwuid-preload.c',
|
||||
name_prefix : '',
|
||||
dependencies: libdl_dep,
|
||||
install_dir : installed_tests_execdir,
|
||||
install_tag : 'tests',
|
||||
install: installed_tests_enabled,
|
||||
),
|
||||
],
|
||||
'depends' : [],
|
||||
'env' : {
|
||||
'LD_PRELOAD': '@0@/getpwuid-preload.so'.format(meson.current_build_dir()),
|
||||
'LD_PRELOAD': getpwuid_preload.full_path()
|
||||
},
|
||||
'installed_tests_env' : {
|
||||
'LD_PRELOAD': '@0@/getpwuid-preload.so'.format(installed_tests_execdir),
|
||||
'LD_PRELOAD': installed_tests_execdir / fs.name(getpwuid_preload.full_path())
|
||||
},
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user