Skip to content

Commit

Permalink
ax_pthread/clang: move -pthread to LIBS
Browse files Browse the repository at this point in the history
clang also requires linking with -pthread to use pthreads.
FFmpeg linking is broken otherwise due to undefined symbols.

Signed-off-by: Christopher Degawa <ccom@randomderp.com>
  • Loading branch information
1480c1 committed Apr 25, 2024
1 parent bb836ff commit d1683f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions m4/ax_pthread.m4
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ if test "x$ax_pthread_clang" = "xyes"; then
# -pthread does define _REENTRANT, and while the Darwin headers
# ignore this macro, third-party headers might not.)
PTHREAD_CFLAGS="-pthread"
PTHREAD_LIBS=
PTHREAD_CFLAGS=
PTHREAD_LIBS="-pthread"
ax_pthread_ok=yes
Expand Down

0 comments on commit d1683f4

Please sign in to comment.