diff --git a/Makefile b/Makefile index 125718afd5..0e6bffafcf 100644 --- a/Makefile +++ b/Makefile @@ -65,9 +65,10 @@ ifneq ($(findstring Linux,$(OS)),) JOYCONFIG_OBJ += input/linuxraw_joypad.o endif +OBJ += autosave.o thread.o + ifeq ($(HAVE_THREADS), 1) - OBJ += autosave.o thread.o - LIBS += -lpthread + LIBS += endif ifeq ($(HAVE_CONFIGFILE), 1)