summaryrefslogtreecommitdiff
path: root/mbld/libs.myr
diff options
context:
space:
mode:
authorCarlin Bingham <cb@viennan.net>2018-01-10 02:57:37 +1300
committerCarlin Bingham <cb@viennan.net>2018-01-10 02:57:37 +1300
commit59a098256a8e983f8e46473b70f4e35241b22a72 (patch)
treeab500ceabf9b27490b1a9ce12d4ef5653b33263a /mbld/libs.myr
parent93db6a9fd69794d74e56cbdfc7796b46da407812 (diff)
downloadmc-59a098256a8e983f8e46473b70f4e35241b22a72.tar.gz
Dynamically link if any deps use dynamic libs
Diffstat (limited to 'mbld/libs.myr')
-rw-r--r--mbld/libs.myr1
1 files changed, 1 insertions, 0 deletions
diff --git a/mbld/libs.myr b/mbld/libs.myr
index 544181a..8d8bf9a 100644
--- a/mbld/libs.myr
+++ b/mbld/libs.myr
@@ -146,6 +146,7 @@ const addlib = {b, sl, lib, added, diradded, looped
match std.htget(b.libs, lib)
| `std.None:
std.slpush(sl, std.fmt("-l{}", lib))
+ b.dynlink = true
| `std.Some ld:
for l : ld.dep
addlib(b, sl, l, added, diradded, looped)