Skip to content

Commit d1683f4

Browse files
committed
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 <[email protected]>
1 parent bb836ff commit d1683f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

m4/ax_pthread.m4

+2-2
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ if test "x$ax_pthread_clang" = "xyes"; then
261261
# -pthread does define _REENTRANT, and while the Darwin headers
262262
# ignore this macro, third-party headers might not.)
263263
264-
PTHREAD_CFLAGS="-pthread"
265-
PTHREAD_LIBS=
264+
PTHREAD_CFLAGS=
265+
PTHREAD_LIBS="-pthread"
266266
267267
ax_pthread_ok=yes
268268

0 commit comments

Comments
 (0)