summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-03-10 19:43:20 -0800
committerOri Bernstein <ori@eigenstate.org>2016-03-10 19:44:55 -0800
commit5269edd399f1b55f98e10fc5e809e22bec6c7bb1 (patch)
tree2f53682f7058f8071250f581f72b49d5623bf45d /configure
parentf15c3cc3fc96cc9cd383f53d6dd662bfb835a1b2 (diff)
downloadmc-5269edd399f1b55f98e10fc5e809e22bec6c7bb1.tar.gz
Fix build on OSX, by deduping syms correctly.
With macho, we need to set a different attribute for asm than we need on ELF targets.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure b/configure
index 3e5892a..5750599 100755
--- a/configure
+++ b/configure
@@ -40,7 +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 Defaultasm Gnugas' >> config.h
echo '#define Objsuffix ".o"' >> config.h
echo 'export SYSCLASS=posixy' >> config.mk
@@ -60,13 +59,14 @@ echo "const Libpath = \"lib/myr\"" >> mbld/config.myr
case $OS in
*Linux*)
echo '#define Symprefix ""' >> config.h
- echo '#define Defaultasm Gnugas' >> config.h
+ echo '#define Defaultasm Gnugaself' >> 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 '#define Defaultasm Gnugasmacho' >> config.h
echo 'export SYS=osx' >> config.mk
echo 'const Linkcmd = ["ld", ' \
'"-pagezero_size", "0x100000000",' \
@@ -76,7 +76,7 @@ case $OS in
;;
*FreeBSD*)
echo '#define Symprefix ""' >> config.h
- echo '#define Defaultasm Gnugas' >> config.h
+ echo '#define Defaultasm Gnugaself' >> config.h
echo 'export SYS=freebsd' >> config.mk
echo 'const Linkcmd = ["ld", "-o"]' >> mbld/config.myr
echo 'const Sys = "FreeBSD"' >> mbld/config.myr