summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlin Bingham <cb@viennan.net>2018-01-17 01:06:58 +1300
committerCarlin Bingham <cb@viennan.net>2018-01-17 01:46:14 +1300
commit5e0c7cc7675adf25f01f33f0fd4b6243ae37f527 (patch)
tree9cfda27fa7491fc3547b0f3863e730742055d746
parent152b881475d2c11fc183669d3d57ed6ac201ef0b (diff)
downloadmc-5e0c7cc7675adf25f01f33f0fd4b6243ae37f527.tar.gz
Add a stub dlflags config variable for every OS
-rwxr-xr-xconfigure5
-rw-r--r--mbld/config+plan9-x64.myr1
2 files changed, 6 insertions, 0 deletions
diff --git a/configure b/configure
index ce2313b..4dafa85 100755
--- a/configure
+++ b/configure
@@ -49,6 +49,7 @@ case $OS in
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 @@ case $OS in
'"-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 @@ case $OS in
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 @@ case $OS in
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 @@ case $OS in
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
;;
*)
diff --git a/mbld/config+plan9-x64.myr b/mbld/config+plan9-x64.myr
index b13fedc..e246d4d 100644
--- a/mbld/config+plan9-x64.myr
+++ b/mbld/config+plan9-x64.myr
@@ -4,6 +4,7 @@ pkg config =
const Sys = "Plan9"
const Objsuffix = ".6"
const Linkcmd = ["6l", "-l"]
+ const Dlflags : byte[:][:] = [][:]
const Arcmd = ["ar", "u"]
const Ascmd = ["6a"]
const Directlib = true