summaryrefslogtreecommitdiff
blob: 720211afb507bbb9112be9691f40176e5a5aba48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
diff --git a/Makefile.inc.in b/Makefile.inc.in
index 5a52d25..86f93d1 100644
--- a/Makefile.inc.in
+++ b/Makefile.inc.in
@@ -100,7 +100,7 @@ LIBS_LIBPULSE      = @LIBPULSE_LIBS@
 LIBS_LUA           = $(TOP)vendor/luajit/src/libluajit.a
 LIBS_OPENAL        = @OPENAL_LIBS@
 LIBS_PORTAUDIO     = @PORTAUDIO_LIBS@
-LIBS_PTHREAD       = @PTHREAD_LIBS@
+LIBS_PTHREAD       = @PTHREAD_LIBS@ -lpthread
 LIBS_UCHARDET      = @UCHARDET_LIBS@

 ifeq (yes, $(BUILD_DARWIN))
diff --git a/libaegisub/Makefile b/libaegisub/Makefile
index b021523..77a18ec 100644
--- a/libaegisub/Makefile
+++ b/libaegisub/Makefile
@@ -44,7 +44,8 @@ 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) \
+	$(CFLAGS_PTHREAD) $(CPPFLAGS_BOOST) $(CFLAGS_LUA)

 $(d)common/charset.o_FLAGS := $(CFLAGS_UCHARDET)
 $(d)common/charset_conv.o_FLAGS := $(CFLAGS_ICONV)