From cf6b778799edf4ebc2331d12707e66e7d38331ea Mon Sep 17 00:00:00 2001 From: Leonid Bobrov Date: Tue, 7 Jan 2020 21:51:42 +0200 Subject: INSTALL, 9c, 9l: improve handling of *BSD (#302) --- bin/9c | 5 ++--- bin/9l | 13 ------------- 2 files changed, 2 insertions(+), 16 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3