(svn r3326) - Fix: [ 1226832 ] Build fails if SDL is built without pthread support (dst)
authorDarkvater
Wed, 21 Dec 2005 01:19:03 +0000
changeset 2779 699ddeb79adf
parent 2778 0002d4b696a0
child 2780 ec4a6951f360
(svn r3326) - Fix: [ 1226832 ] Build fails if SDL is built without pthread support (dst)
Makefile
--- a/Makefile	Wed Dec 21 01:14:01 2005 +0000
+++ b/Makefile	Wed Dec 21 01:19:03 2005 +0000
@@ -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
+	ifndef MORPHOS
+		ifndef OSX
+			LDFLAGS+=-lpthread
+		endif
+	endif
 endif
-endif
-endif
+
 ifdef OSX
-LDFLAGS+=-framework Cocoa
-endif
+	LDFLAGS+=-framework Cocoa
 endif