shithub: mc

Download patch

ref: 8355d0e6cd741731b972955dd10dfb494c3370bf
parent: 0f623b59194288d612412d6db7fb0db4ebb5321d
author: Carlin Bingham <[email protected]>
date: Sat Jan 13 03:27:34 EST 2018

Put the isdyn flag back in the myrtag

--- a/mbld/deps.myr
+++ b/mbld/deps.myr
@@ -177,6 +177,7 @@
 			for l : ll
 				std.slpush(&dynlibs, l)
 			;;
+			mt.isdyn = true
 		elif std.hassuffix(f, config.Objsuffix)
 			depends(g, go, p)
 		else
@@ -463,7 +464,7 @@
 	if std.sleq(opt_sys, "osx")
 		std.slpush(&n.cmd, std.sldup("-macosx_version_min"))
 		std.slpush(&n.cmd, std.sldup("10.6"))
-	elif std.sleq(opt_sys, "linux") && dynlink
+	elif std.sleq(opt_sys, "linux") && (dynlink || mt.isdyn)
 		std.slpush(&n.cmd, std.sldup("-dynamic-linker"))
 		std.slpush(&n.cmd, std.sldup("/lib64/ld-linux-x86-64.so.2"))
 	;;
--- a/mbld/parse.myr
+++ b/mbld/parse.myr
@@ -472,6 +472,7 @@
 		.islib=false,
 		.istest=istest,
 		.isbench=isbench,
+		.isdyn=false,
 		/* attrs */
 		.tags=tags,
 		.install=install,
--- a/mbld/types.myr
+++ b/mbld/types.myr
@@ -46,6 +46,7 @@
 		islib	: bool
 		istest	: bool
 		isbench	: bool
+		isdyn	: bool
 		install	: bool
 
 	;;