mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-10 12:55:48 +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' : {},
|
'unix' : {},
|
||||||
}
|
}
|
||||||
if have_rtld_next and glib_build_shared
|
if have_rtld_next and glib_build_shared
|
||||||
glib_tests += {
|
getpwuid_preload = shared_library('getpwuid-preload',
|
||||||
'gutils-user-database' : {
|
|
||||||
'depends' : [
|
|
||||||
shared_library('getpwuid-preload',
|
|
||||||
'getpwuid-preload.c',
|
'getpwuid-preload.c',
|
||||||
name_prefix : '',
|
name_prefix : '',
|
||||||
dependencies: libdl_dep,
|
dependencies: libdl_dep,
|
||||||
install_dir : installed_tests_execdir,
|
install_dir : installed_tests_execdir,
|
||||||
install_tag : 'tests',
|
install_tag : 'tests',
|
||||||
install: installed_tests_enabled,
|
install: installed_tests_enabled)
|
||||||
),
|
|
||||||
],
|
glib_tests += {
|
||||||
|
'gutils-user-database' : {
|
||||||
|
'depends' : [],
|
||||||
'env' : {
|
'env' : {
|
||||||
'LD_PRELOAD': '@0@/getpwuid-preload.so'.format(meson.current_build_dir()),
|
'LD_PRELOAD': getpwuid_preload.full_path()
|
||||||
},
|
},
|
||||||
'installed_tests_env' : {
|
'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…
x
Reference in New Issue
Block a user