diff --git a/automation/Makefile b/automation/Makefile index d5425b730..5483dbded 100644 --- a/automation/Makefile +++ b/automation/Makefile @@ -14,7 +14,7 @@ $(DESTDIR)$(P_DATA)/automation/%: $(d)% aegisub-lua_OBJ := $(d)tests/aegisub.o $(TOP)lib/libaegisub.a $(TOP)lib/libluabins.a $(LIBS_LUA) aegisub-lua_CPPFLAGS := $(CPPFLAGS_BOOST) $(CFLAGS_LUA) -I$(TOP)libaegisub/include -I$(TOP)src $(CXXFLAGS_WX) -aegisub-lua_LIBS := $(LIBS_WX) $(LIBS_BOOST) $(LIBS_ICU) +aegisub-lua_LIBS := $(LIBS_WX) $(LIBS_BOOST) $(LIBS_ICU) $(LIBS_PTHREAD) PROGRAM += $(d)aegisub-lua diff --git a/libaegisub/Makefile b/libaegisub/Makefile index b02152345..d5901da96 100644 --- a/libaegisub/Makefile +++ b/libaegisub/Makefile @@ -44,7 +44,7 @@ aegisub_OBJ += $(d)common/dispatch.o endif aegisub_PCH := $(d)lagi_pre.h -aegisub_CPPFLAGS := -I$(d)include -I$(TOP) $(CPPFLAGS_BOOST) $(CFLAGS_LUA) +aegisub_CPPFLAGS := -I$(d)include -I$(TOP) $(CPPFLAGS_BOOST) $(CFLAGS_LUA) $(CFLAGS_PTHREAD) $(d)common/charset.o_FLAGS := $(CFLAGS_UCHARDET) $(d)common/charset_conv.o_FLAGS := $(CFLAGS_ICONV) diff --git a/tests/Makefile b/tests/Makefile index e75b9c03a..8c30c1d5b 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -7,7 +7,7 @@ run_PCH := $(d)support/tests_pre.h run_CPPFLAGS := -I$(TOP)libaegisub/include -I$(TOP) -I$(d)support \ -I$(GTEST_ROOT) -I$(GTEST_ROOT)/include $(CPPFLAGS_BOOST) $(CFLAGS_LUA) run_CXXFLAGS := -Wno-unused-value -Wno-sign-compare -run_LIBS := $(LIBS_BOOST) $(LIBS_ICU) -pthread $(LIBS_UCHARDET) +run_LIBS := $(LIBS_BOOST) $(LIBS_ICU) $(LIBS_UCHARDET) $(LIBS_PTHREAD) run_OBJ := \ $(subst .cpp,.o,$(wildcard $(d)tests/*.cpp)) \ $(d)support/main.o \ diff --git a/tools/Makefile b/tools/Makefile index a35049e48..de6166a1e 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -7,7 +7,7 @@ PROGRAM += $(d)osx-bundle-restart-helper endif repack-thes-dict_OBJ := $(d)repack-thes-dict.o $(TOP)lib/libaegisub.a -repack-thes-dict_LIBS := $(LIBS_BOOST) $(LIBS_ICU) $(PTHREAD_LIBS) +repack-thes-dict_LIBS := $(LIBS_BOOST) $(LIBS_ICU) $(LIBS_PTHREAD) repack-thes-dict_CPPFLAGS := -I$(TOP) -I$(TOP)libaegisub/include $(CFLAGS_ICU) PROGRAM += $(d)repack-thes-dict