Specify build_rpath manually to targets linked by hand.
@@ -29,15 +29,19 @@ out = custom_target('library-dependency-hack',
# Manually test if the linker can find the above libraries
# i.e., whether they were generated with the right naming scheme
test('manually linked 1', executable('manuallink1', out,
- link_args : ['-L.', '-lsome']))
+ link_args : ['-L.', '-lsome'],
+ build_rpath : meson.current_build_dir()))
test('manually linked 2', executable('manuallink2', out,
- link_args : ['-L.', '-lnoversion']))
+ link_args : ['-L.', '-lnoversion'],
+ build_rpath : meson.current_build_dir()))
test('manually linked 3', executable('manuallink3', out,
- link_args : ['-L.', '-lonlyversion']))
+ link_args : ['-L.', '-lonlyversion'],
+ build_rpath : meson.current_build_dir()))
test('manually linked 4', executable('manuallink4', out,
- link_args : ['-L.', '-lonlysoversion']))
+ link_args : ['-L.', '-lonlysoversion'],
+ build_rpath : meson.current_build_dir()))
shared_module('module', 'lib.c', install : true)
