diff options
author | Russ Cox <rsc@swtch.com> | 2012-05-29 15:11:14 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2012-05-29 15:11:14 -0400 |
commit | 5d03af6557cc215cabc0f83a274d9add703f526e (patch) | |
tree | 61bc0c7b97aadf801f7623ad0d7e35e97077213c | |
parent | e42c27297abd4cb00704b9d0e7a3401114d34ebf (diff) | |
download | plan9port-5d03af6557cc215cabc0f83a274d9add703f526e.tar.gz plan9port-5d03af6557cc215cabc0f83a274d9add703f526e.tar.bz2 plan9port-5d03af6557cc215cabc0f83a274d9add703f526e.zip |
fix INSTALL warnings
R=rsc
http://codereview.appspot.com/6258060
-rwxr-xr-x | bin/9l | 9 | ||||
-rw-r--r-- | src/cmd/acid/expr.c | 1 | ||||
-rw-r--r-- | src/cmd/fontsrv/mkfile | 2 | ||||
-rw-r--r-- | src/cmd/fontsrv/osx-cocoa.c | 1 | ||||
-rw-r--r-- | src/cmd/venti/srv/mkfile | 2 | ||||
-rw-r--r-- | src/cmd/venti/srv/printarenapart.c | 3 | ||||
-rw-r--r-- | src/mkfile | 1 |
7 files changed, 12 insertions, 7 deletions
@@ -268,12 +268,17 @@ then then X11=/usr/X11R6 fi + # Don't say -L with a non-existent directory: Xcode complains. # x86_64 seems to put its 64-bit libraries in lib64. - if [ "${OBJTYPE:-`uname -m`}" = "x86_64" ] + if [ "${OBJTYPE:-`uname -m`}" = "x86_64" -a -d "$X11/lib64" ] then libsl="$libsl -L$X11/lib64" fi - libsl="$libsl -L$X11/lib -lX11" + if [ -d "$X11/lib" ] + then + libsl="$libsl -L$X11/lib" + fi + libsl="$libsl -lX11" fi fi if $doautoframework diff --git a/src/cmd/acid/expr.c b/src/cmd/acid/expr.c index 9d657b19..088b98f8 100644 --- a/src/cmd/acid/expr.c +++ b/src/cmd/acid/expr.c @@ -1076,7 +1076,6 @@ acidregsrw(Regs *r, char *name, u64int *u, int isr) Value *v; Node *n; u64int addr; - u32int u32; if(!isr){ werrstr("cannot write registers"); diff --git a/src/cmd/fontsrv/mkfile b/src/cmd/fontsrv/mkfile index 27b6b3ce..3d23062e 100644 --- a/src/cmd/fontsrv/mkfile +++ b/src/cmd/fontsrv/mkfile @@ -11,4 +11,4 @@ OFILES=\ <$PLAN9/src/mkone - +osx-cocoa.$O: osx.c diff --git a/src/cmd/fontsrv/osx-cocoa.c b/src/cmd/fontsrv/osx-cocoa.c new file mode 100644 index 00000000..0e36b6e8 --- /dev/null +++ b/src/cmd/fontsrv/osx-cocoa.c @@ -0,0 +1 @@ +#include "osx.c" diff --git a/src/cmd/venti/srv/mkfile b/src/cmd/venti/srv/mkfile index 6a06e3e2..ece63311 100644 --- a/src/cmd/venti/srv/mkfile +++ b/src/cmd/venti/srv/mkfile @@ -89,7 +89,7 @@ $SLIB: $LIBOFILES acid:D: lumpcache.acid cat $prereq >$target -$O.conf:D: conf.rc +$O.conf:DQ: conf.rc { echo '#!/usr/local/plan9/bin/rc' echo '# THIS FILE IS AUTOMATICALLY GENERATED' diff --git a/src/cmd/venti/srv/printarenapart.c b/src/cmd/venti/srv/printarenapart.c index 5367d966..c208829b 100644 --- a/src/cmd/venti/srv/printarenapart.c +++ b/src/cmd/venti/srv/printarenapart.c @@ -11,7 +11,8 @@ usage(void) threadexitsall("usage"); } -static void +/* unused */ +void rdarena(Arena *arena, u64int offset) { u64int a, aa, e; @@ -16,7 +16,6 @@ libs-%:V: do (cd $i; echo cd `pwd`';' mk $MKFLAGS $stem; mk $MKFLAGS $stem) done - [ "$SYSNAME" != Darwin ] || ranlib ../lib/*.a MKDIRS=\ libbio\ |