Include the -pthread flag -- including the pthread library with -lpthread isn't always enough
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ bin_PROGRAMS = shairport-sync
|
||||
|
||||
shairport_sync_SOURCES = shairport.c rtsp.c mdns.c mdns_external.c common.c rtp.c player.c alac.c audio.c loudness.c
|
||||
|
||||
AM_CFLAGS = -Wno-multichar -DSYSCONFDIR=\"$(sysconfdir)\"
|
||||
AM_CFLAGS = -Wno-multichar -pthread -DSYSCONFDIR=\"$(sysconfdir)\"
|
||||
if BUILD_FOR_FREEBSD
|
||||
AM_CPPFLAGS = -I/usr/local/include -Wno-multichar -DSYSCONFDIR=\"$(sysconfdir)\" -O2
|
||||
else
|
||||
|
||||
@@ -51,6 +51,9 @@ else
|
||||
AC_CHECK_LIB([daemon],[daemon_fork], , AC_MSG_ERROR(libdaemon needed))
|
||||
fi
|
||||
|
||||
##### The following check for the pthreads library doesn't put the compiler into the correct pthread mode
|
||||
##### so we add the -pthread compilation flag in AMFLAGS in the Makefile.am as well.
|
||||
|
||||
AC_CHECK_LIB([pthread],[pthread_create], , AC_MSG_ERROR(pthread library needed))
|
||||
AC_CHECK_LIB([m],[exp], , AC_MSG_ERROR(maths library needed))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user