aboutsummaryrefslogtreecommitdiff
path: root/bin/9l
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2012-05-29 15:11:14 -0400
committerRuss Cox <rsc@swtch.com>2012-05-29 15:11:14 -0400
commit5d03af6557cc215cabc0f83a274d9add703f526e (patch)
tree61bc0c7b97aadf801f7623ad0d7e35e97077213c /bin/9l
parente42c27297abd4cb00704b9d0e7a3401114d34ebf (diff)
downloadplan9port-5d03af6557cc215cabc0f83a274d9add703f526e.tar.gz
plan9port-5d03af6557cc215cabc0f83a274d9add703f526e.tar.bz2
plan9port-5d03af6557cc215cabc0f83a274d9add703f526e.zip
fix INSTALL warnings
R=rsc http://codereview.appspot.com/6258060
Diffstat (limited to 'bin/9l')
-rwxr-xr-xbin/9l9
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/9l b/bin/9l
index 68d099e3..864b2f1f 100755
--- a/bin/9l
+++ b/bin/9l
@@ -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