shithub: mc

Download patch

ref: 133e0113e998eacbb469db5e773552ed69c85a55
parent: 63ee97c65c38dfd6a8100e8386610b10cb2c0d77
author: Ori Bernstein <ori@markovcorp.com>
date: Mon Dec 11 06:54:40 EST 2017

Add back dynlibs in usefiles.

--- a/mbld/deps.myr
+++ b/mbld/deps.myr
@@ -186,7 +186,7 @@
 
 	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,10 +400,13 @@
 	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))