summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-12-22 19:01:00 -0800
committerOri Bernstein <ori@eigenstate.org>2014-12-22 19:01:00 -0800
commite9f4727e6dbe517ea9a8f381e45f71137cbbf9ab (patch)
tree031488ad9db25b148aeca4a43140353be76041c8 /configure
parent44dc8c62e81aae1adf3f91f5c78e421c98079116 (diff)
downloadmc-e9f4727e6dbe517ea9a8f381e45f71137cbbf9ab.tar.gz
Use the right 'ar' command on plan9.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 3 insertions, 4 deletions
diff --git a/configure b/configure
index 2312739..51f723e 100755
--- a/configure
+++ b/configure
@@ -35,21 +35,20 @@ MACH=`uname -m`
echo export INST_ROOT=$prefix > config.mk
echo '#define Instroot "'$prefix'"' > config.h
+echo '#define Asmcmd {"as", "-g", "-o", NULL}' >> config.h
+echo '#define Linkcmd {"ar", "-rcs", NULL}' >> config.h
+echo '#define Defaultasm Gnugas' >> config.h
case $OS in
*Linux*)
- echo '#define Asmcmd {"as", "-g", "-o", NULL}' >> config.h
echo '#define Symprefix ""' >> config.h
echo '#define Defaultasm Gnugas' >> config.h
echo 'export SYS=linux' >> config.mk
;;
*Darwin*)
- echo '#define Asmcmd {"as", "-g", "-o", NULL}' >> config.h
echo '#define Symprefix "_"' >> config.h
- echo '#define Defaultasm Gnugas' >> config.h
echo 'export SYS=osx' >> config.mk
;;
*FreeBSD*)
- echo '#define Asmcmd {"as", "-g", "-o", NULL}' >> config.h
echo '#define Symprefix ""' >> config.h
echo '#define Defaultasm Gnugas' >> config.h
echo 'export SYS=freebsd' >> config.mk