summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-12-13 23:21:11 -0800
committerOri Bernstein <ori@eigenstate.org>2014-12-13 23:21:44 -0800
commit24a3d753f2ac998c0b10579191984d79cfed0b7d (patch)
tree1b9733502a435451ce5ecf8785c14bbe1fc6705a /configure
parent008887ccd998a43db6980fa57f1e210ec26c4acf (diff)
downloadmc-24a3d753f2ac998c0b10579191984d79cfed0b7d.tar.gz
Add plan9 instruction formats.
Work towards a plan9 port. This commit also fixes a bug with strings that contain '\0'. The commits got tangled, and I'm too lazy to detangle them.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index 4219352..01de529 100755
--- a/configure
+++ b/configure
@@ -39,16 +39,19 @@ case $OS in
*Linux*)
echo '#define Asmcmd {"as", "-g", "-o", NULL}' >> config.h
echo '#define Symprefix ""' >> config.h
+ echo '#define insnfmt gasinsnfmt' >> 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 insnfmt gasinsnfmt' >> 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 insnfmt gasinsnfmt' >> config.h
echo 'export SYS=freebsd' >> config.mk
;;
*)