]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Build: Prepend, not append, PTHREAD_CFLAGS to LIBS
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 25 Jun 2024 13:00:22 +0000 (16:00 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Fri, 6 Sep 2024 16:26:01 +0000 (19:26 +0300)
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

index 792f7101b53867006d32329ae7adf6ae91b677e0..7bdd2b7fbb6cfeca9f6cf7894c611d34cde04a1a 100644 (file)
@@ -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,