From fd05b04a2713d72b14e1c3def1ab44c4af796440 Mon Sep 17 00:00:00 2001 From: hairball Date: Fri, 14 Feb 2014 04:34:17 +0000 Subject: Don't use -mwindows with Clang on Windows Thanks to stigmha for pointing out this doesn't work in Windows. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f87fbde1..2859e49e 100644 --- a/Makefile +++ b/Makefile @@ -568,7 +568,10 @@ ifeq ($(PLATFORM),mingw32) endif LIBS= -lws2_32 -lwinmm -lpsapi - CLIENT_LDFLAGS += -mwindows + # clang 3.4 doesn't support this + ifneq ("$(CC)", $(findstring "$(CC)", "clang" "clang++")) + CLIENT_LDFLAGS += -mwindows + endif CLIENT_LIBS = -lgdi32 -lole32 RENDERER_LIBS = -lgdi32 -lole32 -lopengl32 -- cgit