aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2020-12-30 07:39:16 -0500
committerRuss Cox <rsc@swtch.com>2020-12-30 07:53:28 -0500
commit99dee78c2d44641ba56e5bb640d732f993b3dfa1 (patch)
tree3e785ab1037b96d4eb2dc321925bc0733332cea8 /bin
parent0bd14783426d137428ffae7cd89cfc06b88d1b11 (diff)
downloadplan9port-99dee78c2d44641ba56e5bb640d732f993b3dfa1.tar.gz
plan9port-99dee78c2d44641ba56e5bb640d732f993b3dfa1.tar.bz2
plan9port-99dee78c2d44641ba56e5bb640d732f993b3dfa1.zip
all: remove $OBJTYPE from build
Now that we assume pthreads, the only assembly left is in libmp and libsec. We only ever added assembly for 386. The portable C code is fine for plan9port.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/9a21
-rwxr-xr-xbin/9c14
-rwxr-xr-xbin/9l12
3 files changed, 5 insertions, 42 deletions
diff --git a/bin/9a b/bin/9a
deleted file mode 100755
index 753797c8..00000000
--- a/bin/9a
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-
-if [ $# != 1 ]; then
- echo 'usage: 9a file.s' 1>&2
- exit 1
-fi
-
-test -f $PLAN9/config && . $PLAN9/config
-
-aflags=""
-case "`uname`-${OBJTYPE:-`uname -m`}" in
-Darwin-*386*)
- aflags="-arch i386"
- ;;
-Darwin-*x86_64*)
- aflags="-arch x86_64"
- ;;
-esac
-
-out=`echo $1 | sed 's/\.s$//;s/$/.o/'`
-exec as $aflags -o $out $1
diff --git a/bin/9c b/bin/9c
index 9dfc082e..4d488179 100755
--- a/bin/9c
+++ b/bin/9c
@@ -112,24 +112,14 @@ usexlc()
cflags="$cflags $CC9FLAGS"
}
-tag="${SYSNAME:-`uname`}-${OBJTYPE:-`uname -m`}-${CC9:-cc}"
+tag="${SYSNAME:-`uname`}-${CC9:-cc}"
case "$tag" in
*DragonFly*gcc*|*BSD*gcc*) usegcc ;;
*DragonFly*clang|*BSD*clang*) useclang ;;
-*Darwin-x86_64*)
+*Darwin*)
useclang
cflags="$cflags -g3 -m64"
;;
-*Darwin-arm64*)
- useclang
- cflags="$cflags -g3 -m64"
- ;;
-*Darwin*clang*)
- useclang
- cflags="$cflags -g3 -m32"
- ;;
-*Darwin*) usegcc
- cflags="$cflags -g3 -no-cpp-precomp -m32" ;;
*HP-UX*) cc=${CC9:-cc}; cflags="-g -O -c -Ae" ;;
*Linux*) usegcc
case "${CC9:-gcc}" in
diff --git a/bin/9l b/bin/9l
index f6eb0ba1..abca55fc 100755
--- a/bin/9l
+++ b/bin/9l
@@ -9,7 +9,7 @@ verbose=false
nmflags=""
extralibs="-lm"
-tag="${SYSNAME:-`uname`}-${OBJTYPE:-`uname -m`}"
+tag="${SYSNAME:-`uname`}"
case "$tag" in
*DragonFly*|*BSD*)
ld="${CC9:-gcc} $CC9FLAGS"
@@ -27,14 +27,8 @@ case "$tag" in
userpath=true
extralibs="$extralibs -lutil -lresolv -lpthread"
;;
-*Darwin*x86_64*)
- ld="${CC9:-gcc} -m64 $CC9FLAGS"
- ;;
-*Darwin-arm64*)
- ld="${CC9:-gcc} -m64 $CC9FLAGS"
- ;;
*Darwin*)
- ld="${CC9:-gcc} -m32 $CC9FLAGS"
+ ld="${CC9:-gcc} -m64 $CC9FLAGS"
;;
*SunOS*)
ld="${CC9:-cc} -g $CC9FLAGS"
@@ -255,7 +249,7 @@ then
fi
# Don't say -L with a non-existent directory: Xcode complains.
# x86_64 seems to put its 64-bit libraries in lib64.
- if [ "${OBJTYPE:-`uname -m`}" = "x86_64" -a -d "$X11/lib64" ]
+ if [ "`uname -m`" = "x86_64" -a -d "$X11/lib64" ]
then
libsl="$libsl -L$X11/lib64"
fi