summaryrefslogtreecommitdiff
path: root/test cases/common/5 linkstatic
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/common/5 linkstatic')
-rw-r--r--test cases/common/5 linkstatic/meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/test cases/common/5 linkstatic/meson.build b/test cases/common/5 linkstatic/meson.build
index 5eaa942b1..c1cb8b639 100644
--- a/test cases/common/5 linkstatic/meson.build
+++ b/test cases/common/5 linkstatic/meson.build
@@ -1,5 +1,6 @@
project('static library linking test', 'c')
-lib = static_library('mylib', 'libfile.c')
+
+lib = build_target('mylib', 'libfile.c', target_type : 'static_library')
exe = executable('prog', 'main.c', link_with : lib)
test('runtest', exe)