From 8d86d395dcf6a5f192b6987485bb7aef49f1fefc Mon Sep 17 00:00:00 2001 From: Jeff Smith Date: Fri, 12 Mar 2010 18:55:09 -0600 Subject: Use X_LIBS from pkg-config, instead of libdir, for locating libX11 Signed-off-by: Jeff Smith Signed-off-by: Dan Nicholson --- progs/xdemos/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'progs/xdemos') diff --git a/progs/xdemos/Makefile b/progs/xdemos/Makefile index e87d55d011..f81aafe00f 100644 --- a/progs/xdemos/Makefile +++ b/progs/xdemos/Makefile @@ -9,9 +9,9 @@ INCDIR = $(TOP)/include LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME) # Add X11 and pthread libs to satisfy GNU gold. -APP_LIB_DEPS += -lX11 -lpthread +APP_LIB_DEPS += $(X_LIBS) -lpthread -LIBS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L$(libdir) $(APP_LIB_DEPS) +LIBS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(APP_LIB_DEPS) PROGS = \ corender \ -- cgit v1.2.3