summaryrefslogtreecommitdiff
path: root/mbld
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2017-12-11 11:54:40 -0800
committerOri Bernstein <ori@markovcorp.com>2017-12-11 11:59:26 -0800
commit133e0113e998eacbb469db5e773552ed69c85a55 (patch)
treeaea5cf9558000d6d1cf4c26eb7c1bb9f98b9753f /mbld
parent63ee97c65c38dfd6a8100e8386610b10cb2c0d77 (diff)
downloadmc-133e0113e998eacbb469db5e773552ed69c85a55.tar.gz
Add back dynlibs in usefiles.
Diffstat (limited to 'mbld')
-rw-r--r--mbld/deps.myr7
1 files changed, 5 insertions, 2 deletions
diff --git a/mbld/deps.myr b/mbld/deps.myr
index 066fb3c..9608182 100644
--- a/mbld/deps.myr
+++ b/mbld/deps.myr
@@ -186,7 +186,7 @@ const myrdeps = {b, name, mt
if mt.islib
arcmd(b, go, mt, to)
- musecmd(b, gu, mt, tu)
+ musecmd(b, gu, mt, tu, dynlibs)
builtlib(b, mt, libs, dynlibs)
else
linkcmd(b, go, mt, to, libs, dynlibs, false)
@@ -400,11 +400,14 @@ const checkloop = {g, n, visited, looped, stk
std.htdel(looped, n)
}
-const musecmd = {b, n, mt, mu
+const musecmd = {b, n, mt, mu, dynlibs
std.slpush(&n.cmd, std.sldup(opt_muse))
for o : opt_museflags
std.slpush(&n.cmd, o)
;;
+ for l : dynlibs
+ std.slpush(&n.cmd, std.fmt("-l{}", l))
+ ;;
std.slpush(&n.cmd, std.sldup("-o"))
std.slpush(&n.cmd, std.sldup(mu))
std.slpush(&n.cmd, std.sldup("-p"))