Commit Diff


commit - 6987199d12136814679c36e2592a839f504b56f2
commit + c384ebd2ce67b0289562ac416ff1c233dbd23a13
blob - 6e2373fa1cf8f583806dbf44859d50009072abec
blob + d6ff3d61535a02a38e80c96fe088872440b14d52
--- src/cmd/rio/mkfile
+++ src/cmd/rio/mkfile
@@ -16,7 +16,9 @@ HFILES=dat.h fns.h
 TARG=rio
 
 # should only use lib64 on x86-64, but it should not hurt elsewhere
-LDFLAGS=-L$X11/lib64 -L$X11/lib -lXext -lX11
+# stupid Darwin complains about the nonexistant directory
+L64=`[ -d $X11/lib64 ] && echo 64`
+LDFLAGS=-L$X11/lib$L64 -lXext -lX11
 
 <$PLAN9/src/mkone