Files
KirkOS/user/include/mlibc/tests/rtld/ld_library_path/meson.build
T
kaguya 9a9b91c940 user: implement mlibc as the libc, finally.
It's finally done..

Signed-off-by: kaguya <vpshinomiya@protonmail.com>
2026-05-02 03:31:49 -04:00

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]