shithub: mc

Download patch

ref: 5e0c7cc7675adf25f01f33f0fd4b6243ae37f527
parent: 152b881475d2c11fc183669d3d57ed6ac201ef0b
author: Carlin Bingham <[email protected]>
date: Tue Jan 16 20:06:58 EST 2018

Add a stub dlflags config variable for every OS

--- a/configure
+++ b/configure
@@ -49,6 +49,7 @@
         echo export INST_MAN=$prefix/share/man/man >> config.mk
         echo 'const Sys = "Linux"' >> mbld/config.myr
         echo 'const Linkcmd = ["ld"]' >> mbld/config.myr
+        echo 'const Dlflags : byte[:][:] = [][:]' >> mbld/config.myr
         echo "const Manpath = \"share/man/man\"" >> mbld/config.myr
         ;;
     *Darwin*)
@@ -64,6 +65,7 @@
             '"-macosx_version_min", "10.6",'\
             ']' >> mbld/config.myr
         echo "const Manpath = \"share/man/man\"" >> mbld/config.myr
+        echo 'const Dlflags : byte[:][:] = [][:]' >> mbld/config.myr
 	env='[("MACOSX_DEPLOYMENT_TARGET", "10.6")][:]'
         ;;
     *FreeBSD*)
@@ -71,6 +73,7 @@
         echo export INST_MAN=$prefix/man/man >> config.mk
         echo 'const Sys = "FreeBSD"' >> mbld/config.myr
         echo 'const Linkcmd = ["ld"]' >> mbld/config.myr
+        echo 'const Dlflags : byte[:][:] = [][:]' >> mbld/config.myr
         echo "const Manpath = \"man/man\"" >> mbld/config.myr
         ;;
     *NetBSD*)
@@ -78,6 +81,7 @@
         echo export INST_MAN=$prefix/man/man >> config.mk
         echo 'const Sys = "NetBSD"' >> mbld/config.myr
         echo 'const Linkcmd = ["ld"]' >> mbld/config.myr
+        echo 'const Dlflags : byte[:][:] = [][:]' >> mbld/config.myr
         echo "const Manpath = \"man/man\"" >> mbld/config.myr
         ;;
     *OpenBSD*)
@@ -85,6 +89,7 @@
         echo export INST_MAN=$prefix/man/man >> config.mk
         echo 'const Sys = "OpenBSD"' >> mbld/config.myr
         echo 'const Linkcmd = ["ld", "-nopie"]' >> mbld/config.myr
+        echo 'const Dlflags : byte[:][:] = [][:]' >> mbld/config.myr
         echo "const Manpath = \"man/man\"" >> mbld/config.myr
         ;;
     *)
--- a/mbld/config+plan9-x64.myr
+++ b/mbld/config+plan9-x64.myr
@@ -4,6 +4,7 @@
 	const Sys	= "Plan9"
 	const Objsuffix	= ".6"
 	const Linkcmd	= ["6l", "-l"]
+	const Dlflags	: byte[:][:] = [][:]
 	const Arcmd	= ["ar", "u"]
 	const Ascmd	= ["6a"]
 	const Directlib	= true