9a9b91c940
It's finally done.. Signed-off-by: kaguya <vpshinomiya@protonmail.com>
23 lines
683 B
Meson
23 lines
683 B
Meson
# Remove the RPATH and set the LD_LIBRARY_PATH environment variable
|
|
# instead when running tests to make sure the library can be found
|
|
# in a directory specified by the user at runtime
|
|
|
|
test_rpath = '$ORIGIN/'
|
|
|
|
test_ld_path = meson.global_build_root() / 'tests' / 'rtld' / test_name
|
|
test_env += ['LD_LIBRARY_PATH=' + test_ld_path]
|
|
test_native_env += ['LD_LIBRARY_PATH=' + test_ld_path]
|
|
|
|
libfoo = shared_library('foo', 'libfoo.c',
|
|
dependencies: libc_dep,
|
|
link_args: test_additional_link_args,
|
|
)
|
|
|
|
test_depends = [libfoo]
|
|
|
|
libfoo_native = shared_library('native-foo', 'libfoo.c',
|
|
link_args: ['-ldl'] + test_additional_link_args,
|
|
native: true
|
|
)
|
|
test_native_depends = [libfoo_native]
|