summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-12-21 01:19:03 +0000
committerDarkvater <darkvater@openttd.org>2005-12-21 01:19:03 +0000
commit97e9141c6535acb6538e781f3fd866ef37ea09d2 (patch)
treea16e6129b3cf5ad1f1d238cb4abe95ada26509b9
parenta24de0ba3bc501de76d191512df36259d3654d8e (diff)
downloadopenttd-97e9141c6535acb6538e781f3fd866ef37ea09d2.tar.xz
(svn r3326) - Fix: [ 1226832 ] Build fails if SDL is built without pthread support (dst)
-rw-r--r--Makefile20
1 files changed, 11 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index a34c53e2b..3f3ed1ca1 100644
--- a/Makefile
+++ b/Makefile
@@ -226,19 +226,21 @@ endif
endif
# remove the dependancy for sdl if DEDICALTED is used
-# and add -lpthread to LDFLAGS, because SDL normally adds that...
ifdef DEDICATED
-WITH_SDL:=
-ifndef WIN32
-ifndef MORPHOS
-ifndef OSX
-LDFLAGS+=-lpthread
-endif
+ WITH_SDL:=
endif
+
+# add -lpthread to LDFLAGS
+ifndef WIN32
+ ifndef MORPHOS
+ ifndef OSX
+ LDFLAGS+=-lpthread
+ endif
+ endif
endif
+
ifdef OSX
-LDFLAGS+=-framework Cocoa
-endif
+ LDFLAGS+=-framework Cocoa
endif