tbuild: use ar s flag to avoid ranlib - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 50808670fce561a500eb46267f7da10bddad3524
DIR parent eb5d2a54d5ee79118c8081c7de3409f93e500b54
HTML Author: Russ Cox <rsc@swtch.com>
Date: Mon, 5 Nov 2007 11:27:14 -0500
build: use ar s flag to avoid ranlib
Diffstat:
M bin/9ar | 9 ++++-----
M src/cmd/venti/srv/mkfile | 2 +-
M src/mklib | 4 ++--
M src/mkmk.sh | 7 ++++---
M src/mksyslib | 6 +++---
5 files changed, 14 insertions(+), 14 deletions(-)
---
DIR diff --git a/bin/9ar b/bin/9ar
t@@ -1,8 +1,7 @@
#!/bin/sh
ar "$@"
-case "`uname`" in
-Darwin)
- ranlib -c $2
- ;;
-esac
+
+# We used to run ranlib if uname = Darwin,
+# but the mkfiles now pass the s flag to 9ar,
+# so ranlib should be unnecessary even there.
DIR diff --git a/src/cmd/venti/srv/mkfile b/src/cmd/venti/srv/mkfile
t@@ -77,7 +77,7 @@ CLEANFILES=$CLEANFILES $SLIB
<$PLAN9/src/mkmany
$SLIB: $LIBOFILES
- 9ar rvc $SLIB $LIBOFILES
+ 9ar rsc $SLIB $LIBOFILES
# xml.c:D: mkxml dat.h
# ./mkxml dat.h > xml.c
DIR diff --git a/src/mklib b/src/mklib
t@@ -2,10 +2,10 @@ default:V: $LIB
$LIB(%):N: %
$LIB: ${OFILES:%=$LIB(%)}
- $AR rvc $LIB $newmember
+ $AR rsc $LIB $newmember
&:n: &.$O
- $AR rvc $LIB $stem.$O
+ $AR rsc $LIB $stem.$O
all install:V: $LIB
DIR diff --git a/src/mkmk.sh b/src/mkmk.sh
t@@ -63,6 +63,7 @@ echo cd `pwd`
9c nulldir.c
9c open.c
9c opentemp.c
+9c pin.c
9c pipe.c
9c post9p.c
9c postnote.c
t@@ -146,7 +147,7 @@ echo cd `pwd`
9c utf/utfrrune.c
9c utf/utfrune.c
9c utf/utfutf.c
mx1.adamsgaard.dk:70 /src/plan9port/commit/50808670fce561a500eb46267f7da10bddad3524.gph:76: line too long