aboutsummaryrefslogtreecommitdiff
path: root/bin/9c
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2020-01-19 21:10:11 -0500
committerRuss Cox <rsc@swtch.com>2020-01-19 23:04:58 -0500
commitcb8f7357867a2a5d0bd742ceeb77bce9ad5f435c (patch)
treee21e8faaa68f8df48632973444a664f582de719a /bin/9c
parent8d82ccefd2b4b058e20ae0a7e3d9ef9b6b8cf8c3 (diff)
downloadplan9port-cb8f7357867a2a5d0bd742ceeb77bce9ad5f435c.tar.gz
plan9port-cb8f7357867a2a5d0bd742ceeb77bce9ad5f435c.tar.bz2
plan9port-cb8f7357867a2a5d0bd742ceeb77bce9ad5f435c.zip
all: remove Linux 2.4 vs 2.6 detection
Linux 2.4 is dead. (The libthread code hasn't worked for Linux 2.4 for a long time.)
Diffstat (limited to 'bin/9c')
-rwxr-xr-xbin/9c14
1 files changed, 3 insertions, 11 deletions
diff --git a/bin/9c b/bin/9c
index 20919e9a..b07d0149 100755
--- a/bin/9c
+++ b/bin/9c
@@ -93,28 +93,20 @@ case "$tag" in
useclang
cflags="$ngflags -g3 -m32"
;;
-*Darwin*) usegcc
+*Darwin*) usegcc
cflags="$ngflags -g3 -no-cpp-precomp -m32" ;;
*HP-UX*) cc=${CC9:-cc}; cflags="-g -O -c -Ae" ;;
-*Linux*) usegcc
+*Linux*) usegcc
case "${CC9:-gcc}" in
tcc)
cc=tcc
cflags="-c -g"
;;
esac
- case "${SYSVERSION:-`uname -r`}" in
- 2.4.*)
- cflags="$cflags -D__Linux24__"
- ;;
- 2.6.*)
- cflags="$cflags -D__Linux26__"
- ;;
- esac
;;
*OSF1*) cc=${CC9:-cc}; cflags="-g -O -c" ;;
*SunOS*-cc) cc=cc;
- cflags="-mt -g -O -c -xCC -D__sun__"
+ cflags="-mt -g -O -c -xCC -D__sun__"
u=`uname`
v=`uname -r`
s=`echo $u$v | tr '. ' '__'`