Skip to content

Commit bb33091

Browse files
committed
Only declare a 'link_whole' dependency when building static library
1 parent 4c8f45a commit bb33091

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

meson.build

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ slash_dep = declare_dependency(
4545
link_with : slash_lib,
4646
)
4747

48-
slash_link_whole_dep = declare_dependency(
49-
include_directories : slash_inc,
50-
link_with : slash_lib,
51-
link_whole: [slash_lib]
52-
)
48+
if get_option('default_library') == 'static'
49+
slash_link_whole_dep = declare_dependency(
50+
include_directories : slash_inc,
51+
link_with : slash_lib,
52+
link_whole: [slash_lib]
53+
)
54+
endif

0 commit comments

Comments
 (0)