[build] Add the '-pthread' to the list of extra libraries.

Instead of setting it manually.
This commit is contained in:
Suresh Sundriyal 2015-03-27 04:14:39 -07:00
parent b8d7841342
commit 9f1da30515
1 changed files with 2 additions and 4 deletions

View File

@ -32,13 +32,11 @@ AC_DEFUN([LNAV_WITH_SQLITE3],
]
)
AS_VAR_SET([saved_LDFLAGS], [$LDFLAGS])
LNAV_ADDTO([LDFLAGS], [-pthread])
AC_SEARCH_LIBS([sqlite3_open], [sqlite3],
AS_VAR_SET([SQLITE3_LIBS], ["-lsqlite3"]),
AC_MSG_ERROR([sqlite3 library not found])
AC_MSG_ERROR([sqlite3 library not found]),
[-pthread]
)
AS_VAR_SET([LDFLAGS], [$saved_LDFLAGS])
AC_CHECK_HEADERS([sqlite3.h], [],
AC_MSG_ERROR([sqlite3 headers not found])