Add -pthread to CFLAGS
This commit is contained in:
parent
3f6ae400e9
commit
46aa412b7b
|
@ -17,6 +17,7 @@ fi
|
|||
|
||||
LIBS="$LIBS $LEXLIB"
|
||||
|
||||
AC_CHECK_LIB(pthread, pthread_create, [PTHREAD_CFLAGS+=-lpthread])
|
||||
|
||||
AC_CHECK_PROGS(YACC, 'bison -y' byacc yacc)
|
||||
if test -z "$YACC"; then
|
||||
|
@ -47,7 +48,7 @@ AC_PATH_PROG(MAKEDEPEND, makedepend)
|
|||
AC_MSG_CHECKING([how to generate dependency info])
|
||||
|
||||
if test "$ac_cv_c_compiler_gnu" = yes; then
|
||||
CFLAGS="$CFLAGS -Wall -Wno-unused"
|
||||
CFLAGS="$CFLAGS -Wall -Wno-unused $PTHREAD_CFLAGS"
|
||||
MKDEP="$CC -MM"
|
||||
MKDEP_DIRECT="> .depend"
|
||||
AC_MSG_RESULT(gcc)
|
||||
|
|
Loading…
Reference in New Issue