changeset 2779:5aefb1f5491b draft

(svn r3326) - Fix: [ 1226832 ] Build fails if SDL is built without pthread support (dst)
author Darkvater <Darkvater@openttd.org>
date Wed, 21 Dec 2005 01:19:03 +0000
parents edf00c256933
children df777561aea2
files Makefile
diffstat 1 files changed, 11 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile
+++ b/Makefile
@@ -226,19 +226,21 @@
 endif
 
 # remove the dependancy for sdl if DEDICALTED is used
-# and add -lpthread to LDFLAGS, because SDL normally adds that...
 ifdef DEDICATED
-WITH_SDL:=
+	WITH_SDL:=
+endif
+
+# add -lpthread to LDFLAGS
 ifndef WIN32
-ifndef MORPHOS
-ifndef OSX
-LDFLAGS+=-lpthread
-endif
+	ifndef MORPHOS
+		ifndef OSX
+			LDFLAGS+=-lpthread
+		endif
+	endif
 endif
-endif
+
 ifdef OSX
-LDFLAGS+=-framework Cocoa
-endif
+	LDFLAGS+=-framework Cocoa
 endif