Commit Diff


commit - 0ebee0de76f5225c87516bcebcd1ac59eb341b97
commit + c968e5190b6502cbcd4a97627c0fa73dfb0255a4
blob - 7ea689d1ed67bcb442f8f3eb8a7048854ffa476a
blob + c10c11e8b1b0a862366806aa2728fb6b2b3702c2
--- bin/9l
+++ bin/9l
@@ -147,6 +147,11 @@ then
 		then
 			X11=/usr/X11R6
 		fi
+		# x86_64 seems to put its 64-bit libraries in lib64.
+		if [ "${OBJTYPE:-`uname -m`}" = "x86_64" ]
+		then
+			libsl="$libsl -L$X11/lib64"
+		fi
 		libsl="$libsl -L$X11/lib -lX11"
 	fi
 fi