From 2bedbb7b64f24e90ea4dcef102c96fe3690a52b6 Mon Sep 17 00:00:00 2001 From: tma Date: Sun, 25 Sep 2005 22:27:26 +0000 Subject: * Don't link against X directly when building the SDL backend git-svn-id: svn://svn.icculus.org/quake3/trunk@108 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/unix/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'code/unix/Makefile') diff --git a/code/unix/Makefile b/code/unix/Makefile index dfcd43f..8a22bf1 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) -- cgit v1.2.3