From d1683f4623903f621b0d0c286c96a6c23980ffe8 Mon Sep 17 00:00:00 2001 From: Christopher Degawa Date: Wed, 24 Apr 2024 21:32:43 -0500 Subject: [PATCH] ax_pthread/clang: move -pthread to LIBS clang also requires linking with -pthread to use pthreads. FFmpeg linking is broken otherwise due to undefined symbols. Signed-off-by: Christopher Degawa --- m4/ax_pthread.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/m4/ax_pthread.m4 b/m4/ax_pthread.m4 index 4c4051ea3..aefb81af3 100644 --- a/m4/ax_pthread.m4 +++ b/m4/ax_pthread.m4 @@ -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