Skip to content

Commit

Permalink
Build: Prepend, not append, PTHREAD_CFLAGS to LIBS
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Larhzu committed Jun 26, 2024
1 parent 7bb46f2 commit 2402e8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2402e8a

Please sign in to comment.