]> 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>
Wed, 26 Jun 2024 12:48:56 +0000 (15:48 +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.

configure.ac

index cb6eaaa31d48b22c90fbcc02d99e076b42739e56..6ccb1df6fd94a47f20bac0547bdc2ff2afe28f22 100644 (file)
@@ -637,7 +637,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,