aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorLeonid Bobrov <goleo@disroot.org>2020-01-07 21:51:42 +0200
committerDan Cross <crossd@gmail.com>2020-01-07 14:51:42 -0500
commitcf6b778799edf4ebc2331d12707e66e7d38331ea (patch)
tree3ea228207f8ba79e5fbd32bdddbb229b31ec27b0 /bin
parent6f5bd96ed836ad26b9c4ab6ad9ecc81e28622736 (diff)
downloadplan9port-cf6b778799edf4ebc2331d12707e66e7d38331ea.tar.gz
plan9port-cf6b778799edf4ebc2331d12707e66e7d38331ea.tar.bz2
plan9port-cf6b778799edf4ebc2331d12707e66e7d38331ea.zip
INSTALL, 9c, 9l: improve handling of *BSD (#302)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/9c5
-rwxr-xr-xbin/9l13
2 files changed, 2 insertions, 16 deletions
diff --git a/bin/9c b/bin/9c
index 88c47887..7e6e3ab8 100755
--- a/bin/9c
+++ b/bin/9c
@@ -79,9 +79,8 @@ useclang()
tag="${SYSNAME:-`uname`}-${OBJTYPE:-`uname -m`}-${CC9:-cc}"
case "$tag" in
-*FreeBSD*gcc*) usegcc ;;
-*FreeBSD*clang*) useclang ;;
-*DragonFly*|*BSD*) usegcc ;;
+*(DragonFly|BSD)*gcc*) usegcc ;;
+*(DragonFly|BSD)*clang*) useclang ;;
*Darwin-x86_64*)
useclang
cflags="$ngflags -g3 -m64"
diff --git a/bin/9l b/bin/9l
index 032d3801..8af27154 100755
--- a/bin/9l
+++ b/bin/9l
@@ -11,19 +11,6 @@ nmflags=""
extralibs="-lm"
tag="${SYSNAME:-`uname`}-${OBJTYPE:-`uname -m`}"
case "$tag" in
-*FreeBSD*)
- ld=${CC9:-gcc}
- userpath=true
- extralibs="$extralibs -lutil"
- case "`uname -r`" in
- 5.2.*)
- extralibs="$extralibs -lkse"
- ;;
- [5-9].*|1[0-9].*)
- extralibs="$extralibs -lpthread"
- ;;
- esac
- ;;
*DragonFly*|*BSD*)
ld=${CC9:-gcc}
userpath=true