From 495de6ec9d7834c4ef4d5286844ef7b784eb951b Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Tue, 25 Jun 2024 16:00:22 +0300 Subject: [PATCH] Build: Prepend, not append, PTHREAD_CFLAGS to LIBS It shouldn't make any difference because LIBS should be empty at that point in configure. But prepending is the correct way because in general the libraries being added might require other libraries that come later on the command line. (cherry picked from commit 2402e8a1ae92676fa0d4cb1b761d7f62f005c098) --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 792f7101..7bdd2b7f 100644 --- a/configure.ac +++ b/configure.ac @@ -632,7 +632,7 @@ AS_CASE([$enable_threads], echo echo "POSIX threading support:" AX_PTHREAD([:]) dnl We don't need the HAVE_PTHREAD macro. - LIBS="$LIBS $PTHREAD_LIBS" + LIBS="$PTHREAD_LIBS $LIBS" AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS" dnl NOTE: PTHREAD_CC is ignored. It would be useful on AIX,