summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-04-14 16:57:15 -0700
committerOri Bernstein <ori@eigenstate.org>2015-04-14 16:57:15 -0700
commit68dc8fd88d1fc23d6b882531343b38a8e2c7ac99 (patch)
tree00bf0c979f362cf401a41fc37a4f5717edb9094f /configure
parentb1739a7f310d9540f309afda175af2ae5a1dcca9 (diff)
downloadmc-68dc8fd88d1fc23d6b882531343b38a8e2c7ac99.tar.gz
Get much closer to getting this whole mess working on OSX.
It looks like the last missing piece is a working getcwd.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 6 insertions, 3 deletions
diff --git a/configure b/configure
index a8426f6..9ab6872 100755
--- a/configure
+++ b/configure
@@ -40,8 +40,6 @@ echo export INST_ROOT=$prefix > config.mk
echo '#define Instroot "'$prefix'"' > config.h
echo '#define Asmcmd {"as", "-g", "-o", NULL}' >> config.h
-echo '#define Arcmd {"ar", "-rcs", NULL}' >> config.h
-echo '#define Ldcmd {"ld", "-o", NULL}' >> config.h
echo '#define Defaultasm Gnugas' >> config.h
echo '#define Objsuffix ".o"' >> config.h
echo 'export SYSCLASS=posixy' >> config.mk
@@ -50,7 +48,6 @@ echo 'export SYSCLASS=posixy' >> config.mk
echo "pkg config = " > mbld/config.myr
echo "const Instroot = \"$prefix\"" >> mbld/config.myr
echo "const Objsuffix = \".o\"" >> mbld/config.myr
-echo "const Linkcmd = [\"ld\", \"-o\"]" >> mbld/config.myr
echo "const Arcmd = [\"ar\", \"-rcs\"]" >> mbld/config.myr
echo "const Ascmd = [\"as\", \"-g\"]" >> mbld/config.myr
echo "const Directlib = false" >> mbld/config.myr
@@ -62,16 +59,22 @@ case $OS in
echo '#define Defaultasm Gnugas' >> config.h
echo 'export SYS=linux' >> config.mk
echo 'const Sys = "Linux"' >> mbld/config.myr
+ echo 'const Linkcmd = ["ld", "-o"]' >> mbld/config.myr
;;
*Darwin*)
echo '#define Symprefix "_"' >> config.h
echo 'export SYS=osx' >> config.mk
+ echo 'const Linkcmd = ["ld", ' \
+ '"-pagezero_size", "0x100000000",' \
+ '"-macosx_version_min", "10.6",'\
+ '"-o"]' >> mbld/config.myr
echo 'const Sys = "OSX"' >> mbld/config.myr
;;
*FreeBSD*)
echo '#define Symprefix ""' >> config.h
echo '#define Defaultasm Gnugas' >> config.h
echo 'export SYS=freebsd' >> config.mk
+ echo 'const Linkcmd = ["ld", "-o"]' >> mbld/config.myr
echo 'const Sys = "FreeBSD"' >> mbld/config.myr
;;
*)