diff --git a/bin/9l b/bin/9l index 7ea689d1..c10c11e8 100755 --- a/bin/9l +++ b/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