From a741551866c6a62b75fe48ef1f81e718b17fef21 Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 22 Feb 2007 14:27:45 +0000 Subject: -ldraw no longer implies -lX11 --- bin/9l | 2 +- src/cmd/devdraw/x11-alloc.c | 2 ++ src/cmd/snarfer/snarfer.c | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/9l b/bin/9l index fc1474ee..7cec21d5 100755 --- a/bin/9l +++ b/bin/9l @@ -168,7 +168,7 @@ then libsl="$libsl -lresolv" fi - if [ "x$needdraw" = xtrue -a "x$WSYSTYPE" != xnowsys ] + if [ "x$needX11" = xtrue -a "x$WSYSTYPE" != xnowsys ] then if [ "x$X11" = "x" ] then diff --git a/src/cmd/devdraw/x11-alloc.c b/src/cmd/devdraw/x11-alloc.c index 5792864f..a465f998 100644 --- a/src/cmd/devdraw/x11-alloc.c +++ b/src/cmd/devdraw/x11-alloc.c @@ -5,6 +5,8 @@ #include #include "x11-memdraw.h" +AUTOLIB(X11); + /* * Allocate a Memimage with an optional pixmap backing on the X server. */ diff --git a/src/cmd/snarfer/snarfer.c b/src/cmd/snarfer/snarfer.c index cdad7b88..9477f042 100644 --- a/src/cmd/snarfer/snarfer.c +++ b/src/cmd/snarfer/snarfer.c @@ -34,6 +34,7 @@ #undef Screen #undef Visual #undef Window +AUTOLIB(X11); #ifdef __APPLE__ #define APPLESNARF #define Boolean AppleBoolean -- cgit v1.2.3