summaryrefslogtreecommitdiff
path: root/test cases/linuxlike
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-07-15 05:51:45 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2017-07-21 19:40:54 +0300
commite82edc179fe86e68d1f74fe084fd891ef2d12316 (patch)
tree04e2bdbb992f2292a7668831f01d95128f929634 /test cases/linuxlike
parent2269b7f60b2443aa697a5616fcc3692fa3496046 (diff)
downloadmeson-e82edc179fe86e68d1f74fe084fd891ef2d12316.tar.gz
Check for manual attempts to set rpath and update docs.
Diffstat (limited to 'test cases/linuxlike')
-rw-r--r--test cases/linuxlike/7 library versions/meson.build14
1 files changed, 9 insertions, 5 deletions
diff --git a/test cases/linuxlike/7 library versions/meson.build b/test cases/linuxlike/7 library versions/meson.build
index d156eb021..516094763 100644
--- a/test cases/linuxlike/7 library versions/meson.build
+++ b/test cases/linuxlike/7 library versions/meson.build
@@ -32,20 +32,24 @@ out = custom_target('library-dependency-hack',
# Need to add this manually because Meson can't add it automatically because
# it doesn't know that we are linking to libraries in the build directory.
-rpath_arg = '-Wl,-rpath,' + meson.current_build_dir()
+rpath_dir = meson.current_build_dir()
# 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', rpath_arg]))
+ link_args : ['-L.', '-lsome'],
+ build_rpath : rpath_dir))
test('manually linked 2', executable('manuallink2', out,
- link_args : ['-L.', '-lnoversion', rpath_arg]))
+ link_args : ['-L.', '-lnoversion'],
+ build_rpath : rpath_dir))
test('manually linked 3', executable('manuallink3', out,
- link_args : ['-L.', '-lonlyversion', rpath_arg]))
+ link_args : ['-L.', '-lonlyversion'],
+ build_rpath : rpath_dir))
test('manually linked 4', executable('manuallink4', out,
- link_args : ['-L.', '-lonlysoversion', rpath_arg]))
+ link_args : ['-L.', '-lonlysoversion'],
+ build_rpath : rpath_dir))
shared_module('module', 'lib.c', install : true)