1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-20 04:46:37 +02:00

Add checks for pthreads to the build system

pthreads are now required, so add appropriate checks to the build system
and set the compile flags accordingly.

closes #98
This commit is contained in:
jin-eld
2014-03-16 16:53:28 +01:00
parent 1a9cd4cd2c
commit 7f70345dae
3 changed files with 323 additions and 2 deletions

View File

@ -34,7 +34,8 @@ toxic_SOURCES = $(top_srcdir)/src/main.c \
toxic_CFLAGS = -I$(top_srcdir) \
$(NCURSES_CFLAGS) \
$(LIBSODIUM_CFLAGS) \
$(LIBTOXCORE_CFLAGS)
$(LIBTOXCORE_CFLAGS) \
$(PTHREAD_CFLAGS)
toxic_CPPFLAGS = '-DTOXICVER="$(TOXIC_VERSION)"'
@ -43,7 +44,8 @@ toxic_LDADD = $(LIBTOXCORE_LDFLAGS) \
$(NCURSES_LIBS) \
$(LIBTOXCORE_LIBS) \
$(LIBSODIUM_LIBS) \
$(WINSOCK2_LIBS)
$(WINSOCK2_LIBS) \
$(PTHREAD_LIBS)
# For audio support