INSTALL, 9c, 9l: improve handling of *BSD (#302)
This commit is contained in:
5
bin/9c
5
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"
|
||||
|
||||
13
bin/9l
13
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
|
||||
|
||||
Reference in New Issue
Block a user