diff options
author | Ori Bernstein <ori@markovcorp.com> | 2017-12-11 11:54:40 -0800 |
---|---|---|
committer | Ori Bernstein <ori@markovcorp.com> | 2017-12-11 11:59:26 -0800 |
commit | 133e0113e998eacbb469db5e773552ed69c85a55 (patch) | |
tree | aea5cf9558000d6d1cf4c26eb7c1bb9f98b9753f /mbld | |
parent | 63ee97c65c38dfd6a8100e8386610b10cb2c0d77 (diff) | |
download | mc-133e0113e998eacbb469db5e773552ed69c85a55.tar.gz |
Add back dynlibs in usefiles.
Diffstat (limited to 'mbld')
-rw-r--r-- | mbld/deps.myr | 7 |
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")) |