diff options
author | Brent Cook <busterb@gmail.com> | 2019-01-01 22:59:47 -0600 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2019-01-07 06:46:03 -0600 |
commit | 3f189a24f23d5540441384ad2581f3f4886344df (patch) | |
tree | efde5e041fe0015329fc7a54618fecc43c98c72c /m4/check-libc.m4 | |
parent | 4eb8da3e07717103fceadf7138a3f377ab1c5110 (diff) | |
download | portable-3f189a24f23d5540441384ad2581f3f4886344df.tar.gz portable-3f189a24f23d5540441384ad2581f3f4886344df.tar.bz2 portable-3f189a24f23d5540441384ad2581f3f4886344df.zip |
check if we need to link pthread dynamically
On Linux, bionic and musl for instance do not need libpthread. With
bionic, there is not even a stub library for compatibility.
Diffstat (limited to 'm4/check-libc.m4')
-rw-r--r-- | m4/check-libc.m4 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/m4/check-libc.m4 b/m4/check-libc.m4 index a4df0b7..85d253a 100644 --- a/m4/check-libc.m4 +++ b/m4/check-libc.m4 | |||
@@ -130,6 +130,7 @@ AC_CHECK_FUNCS([getauxval]) | |||
130 | AC_SEARCH_LIBS([dl_iterate_phdr],[dl]) | 130 | AC_SEARCH_LIBS([dl_iterate_phdr],[dl]) |
131 | AC_CHECK_FUNCS([dl_iterate_phdr]) | 131 | AC_CHECK_FUNCS([dl_iterate_phdr]) |
132 | 132 | ||
133 | AC_SEARCH_LIBS([pthread_once],[pthread]) | ||
133 | AC_SEARCH_LIBS([clock_gettime],[rt posix4]) | 134 | AC_SEARCH_LIBS([clock_gettime],[rt posix4]) |
134 | AC_CHECK_FUNCS([clock_gettime]) | 135 | AC_CHECK_FUNCS([clock_gettime]) |
135 | AM_CONDITIONAL([HAVE_CLOCK_GETTIME], [test "x$ac_cv_func_clock_gettime" = xyes]) | 136 | AM_CONDITIONAL([HAVE_CLOCK_GETTIME], [test "x$ac_cv_func_clock_gettime" = xyes]) |