]> skyeroc.xyz Git - dgamelaunch/commitdiff
(hopefully) put -lpthread in LIBS instead of CFLAGS
authorElronnd <elronnd@slashem.me>
Mon, 6 Feb 2017 01:48:11 +0000 (18:48 -0700)
committerElronnd <elronnd@slashem.me>
Mon, 6 Feb 2017 01:48:11 +0000 (18:48 -0700)
configure.ac

index 8c63165c74d6d5f6184ce842aa1b81790dc5f1a6..4000a223740765b7d57b09e90f14416e41866cf5 100644 (file)
@@ -15,9 +15,9 @@ if test -z "$LEX"; then
    AC_MSG_ERROR([lex or flex not found.])
 fi
 
-LIBS="$LIBS $LEXLIB"
+AC_CHECK_LIB(pthread, pthread_create, [PTHREAD_LIBS+=-lpthread])
 
-AC_CHECK_LIB(pthread, pthread_create, [PTHREAD_CFLAGS+=-lpthread])
+LIBS="$LIBS $LEXLIB $PTHREAD_LIBS"
 
 AC_CHECK_PROGS(YACC, 'bison -y' byacc yacc)
 if test -z "$YACC"; then