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:
@ -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
|
||||
|
Reference in New Issue
Block a user