Add -L$(libdir) for xdemos and egl so that the right libX11 is found
[mesa.git] / progs / xdemos / Makefile
index 9cf984b59e59f434c5dd2d6c335837d6b3966067..e87d55d011e2d55c378f330071b289e66b2c13a1 100644 (file)
@@ -11,7 +11,7 @@ LIB_DEP = $(TOP)/$(LIB_DIR)/$(GL_LIB_NAME)
 # Add X11 and pthread libs to satisfy GNU gold.
 APP_LIB_DEPS += -lX11 -lpthread
 
-LIBS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(APP_LIB_DEPS)
+LIBS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -L$(libdir) $(APP_LIB_DEPS)
 
 PROGS = \
        corender \