From ae9fbe3288990b8564e53222758fb15a41d459fc Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Sun, 25 Sep 2005 22:27:26 +0000 Subject: [PATCH] * Don't link against X directly when building the SDL backend --- code/unix/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/unix/Makefile b/code/unix/Makefile index dfcd43f8..8a22bf1a 100644 --- a/code/unix/Makefile +++ b/code/unix/Makefile @@ -171,7 +171,6 @@ ifeq ($(PLATFORM),linux) THREAD_LDFLAGS=-lpthread LDFLAGS=-ldl -lm - GLLDFLAGS=-L/usr/X11R6/$(LIB) -lX11 -lXext -lXxf86dga -lXxf86vm DEBUG_CFLAGS += -DHAVE_EXECINFO_H ifeq ($(BUILD_FREETYPE),1) @@ -181,7 +180,9 @@ ifeq ($(PLATFORM),linux) endif ifeq ($(strip $(USE_SDL)),true) - GLLDFLAGS+=$(shell sdl-config --libs) + GLLDFLAGS=$(shell sdl-config --libs) + else + GLLDFLAGS=-L/usr/X11R6/$(LIB) -lX11 -lXext -lXxf86dga -lXxf86vm endif ifeq ($(ARCH),i386)