summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-01-22 18:37:01 -0800
committerOri Bernstein <ori@eigenstate.org>2017-01-22 18:37:01 -0800
commit714a85cedc8eea6c4c4d95c074160e0a2ca9e477 (patch)
tree4587653009c5fe8038c5d2017bbc6c4d0dc0fbb1 /configure
parent5f6738ea543372390b2647d6c9efc153c6f46b8f (diff)
downloadmc-714a85cedc8eea6c4c4d95c074160e0a2ca9e477.tar.gz
Set appropriate env vars on OSX.
This shuts up the last warnings for the assembler.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index bc7585f..62b9358 100755
--- a/configure
+++ b/configure
@@ -48,6 +48,7 @@ echo "pkg config = " >> mbld/config.myr
symprefix='""'
defaultasm='Gnugaself'
sysinit=''
+env='[][:]'
case $OS in
*Linux*)
echo 'export SYS=linux' >> config.mk
@@ -64,6 +65,7 @@ case $OS in
'"-pagezero_size", "0x100000000",' \
'"-macosx_version_min", "10.6",'\
'"-o"]' >> mbld/config.myr
+ env='[("MACOSX_DEPLOYMENT_TARGET", "10.6")][:]'
;;
*FreeBSD*)
echo 'export SYS=freebsd' >> config.mk
@@ -108,6 +110,7 @@ echo "const Manpath = \"share/man/man\"" >> mbld/config.myr
echo "const Sharepath = \"share\"" >> mbld/config.myr
echo "const Binpath = \"bin\"" >> mbld/config.myr
echo "const Libpath = \"lib/myr\"" >> mbld/config.myr
+echo "const Env : (byte[:], byte[:])[:] = $env" >> mbld/config.myr
case $MACH in