aboutsummaryrefslogtreecommitdiff
path: root/bin/9l
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@gmail.com>2020-06-18 23:57:51 +0200
committerPetter Rodhelind <petter.rodhelind@gmail.com>2020-06-18 23:57:51 +0200
commit7cda34cf34f3afbd3f2000aa5e2b59ddc319f0f2 (patch)
treeff18b856a35c80a9cc40573c76899d8a468bedc5 /bin/9l
parentea23656f7c3afcfd8516b00c0db09879ae80a09f (diff)
parent329831171dd6ef81c113f101093c7b4947381003 (diff)
downloadplan9port-7cda34cf34f3afbd3f2000aa5e2b59ddc319f0f2.tar.gz
plan9port-7cda34cf34f3afbd3f2000aa5e2b59ddc319f0f2.tar.bz2
plan9port-7cda34cf34f3afbd3f2000aa5e2b59ddc319f0f2.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'bin/9l')
-rwxr-xr-xbin/9l24
1 files changed, 12 insertions, 12 deletions
diff --git a/bin/9l b/bin/9l
index a10aab72..b4f91584 100755
--- a/bin/9l
+++ b/bin/9l
@@ -12,29 +12,29 @@ extralibs="-lm"
tag="${SYSNAME:-`uname`}-${OBJTYPE:-`uname -m`}"
case "$tag" in
*DragonFly*|*BSD*)
- ld=${CC9:-gcc}
+ ld="${CC9:-gcc} $CC9FLAGS"
userpath=true
extralibs="$extralibs -lutil"
;;
*OSF1*)
- ld=${CC9:-cc}
+ ld="${CC9:-cc} $CC9FLAGS"
userpath=true
extralibs="$extralibs -lutil"
nmflags="-B"
;;
*Linux*)
- ld=${CC9:-gcc}
+ ld="${CC9:-gcc} $CC9FLAGS"
userpath=true
extralibs="$extralibs -lutil -lresolv -lpthread"
;;
*Darwin*x86_64*)
- ld="${CC9:-gcc} -m64"
+ ld="${CC9:-gcc} -m64 $CC9FLAGS"
;;
*Darwin*)
- ld="${CC9:-gcc} -m32"
+ ld="${CC9:-gcc} -m32 $CC9FLAGS"
;;
*SunOS*)
- ld="${CC9:-cc} -g"
+ ld="${CC9:-cc} -g $CC9FLAGS"
extralibs="$extralibs -lrt -lpthread -lsocket -lnsl"
# Record paths to shared libraries to avoid needing LD_LIBRARY_PATH
for i in "$libsl $@"
@@ -61,8 +61,8 @@ case "$tag" in
esac
;;
*AIX*)
- ld=${CC9:-gcc}
- nmflags="-B"
+ ld="${CC9:-xlc_r} -g -O0 $CC9FLAGS"
+ nmflags="-A -B"
;;
*)
echo do not know how to link on "$tag" 1>&2
@@ -113,8 +113,8 @@ then
then
a=`
nm $nmflags $ofiles |
- grep '__p9l_autolib_[a-zA-Z0-9+-]*$' |
- sed 's/.*__p9l_autolib_//' |
+ grep '__p9l_autolib_[a-zA-Z0-9+-]*' |
+ sed 's/.*__p9l_autolib_//; s/:.*//' |
sort -u
`
for i in $a
@@ -144,8 +144,8 @@ then
do
b=`
nm $lpath/lib$i.a 2>/dev/null |
- grep '__p9l_autolib_[a-zA-Z0-9+-]*$' |
- sed 's/.*__p9l_autolib_//' |
+ grep '__p9l_autolib_[a-zA-Z0-9+-]*' |
+ sed 's/.*__p9l_autolib_//; s/:.*//' |
sort -u |
egrep -v '^(thread|draw)$'
`