mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 14:41:42 +03:00
Replace -lpthread with -pthread
This automatically adds -latomic if and when needed, e.g. on riscv64 systems. Fixes #1401.
This commit is contained in:
parent
daa0e436ba
commit
471191075d
2 changed files with 2 additions and 2 deletions
|
|
@ -1579,7 +1579,7 @@ if test "x$abi" != "xpecoff" ; then
|
|||
AC_CHECK_HEADERS([pthread.h], , [AC_MSG_ERROR([pthread.h is missing])])
|
||||
dnl Some systems may embed pthreads functionality in libc; check for libpthread
|
||||
dnl first, but try libc too before failing.
|
||||
AC_CHECK_LIB([pthread], [pthread_create], [JE_APPEND_VS(LIBS, -lpthread)],
|
||||
AC_CHECK_LIB([pthread], [pthread_create], [JE_APPEND_VS(LIBS, -pthread)],
|
||||
[AC_SEARCH_LIBS([pthread_create], , ,
|
||||
AC_MSG_ERROR([libpthread is missing]))])
|
||||
wrap_syms="${wrap_syms} pthread_create"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue