diff --git a/Makefile b/Makefile index a34c53e2bb..3f3ed1ca13 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:= + WITH_SDL:= +endif + +# add -lpthread to LDFLAGS ifndef WIN32 -ifndef MORPHOS -ifndef OSX -LDFLAGS+=-lpthread -endif -endif + ifndef MORPHOS + ifndef OSX + LDFLAGS+=-lpthread + endif + endif endif + ifdef OSX -LDFLAGS+=-framework Cocoa -endif + LDFLAGS+=-framework Cocoa endif