On Fri, 13 Dec 2013, Luca Barbato  wrote:

Module: libav
Branch: master
Commit: a5a3b398fd9dce38ca50b20f182b17a256d209f2

Author:    Luca Barbato <[email protected]>
Committer: Luca Barbato <[email protected]>
Date:      Thu Dec 12 17:05:34 2013 +0100

configure: Reorder pthreads checks

Some pthreads symbols might be present in libc (as shown on various *BSD)
but not all of them, leading to false positives.

Check for the most common compiler flags before the plain symbol check
to avoid known pitfalls.

---

configure |    8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

FWIW, this causes clang/OSX to give warnings when linking about the -pthreads parameter being unused. My vote earlier was on checking for 2 (or more if needed) different pthreads functions to sort out the issue, but if the extra warning is the only issue and others don't think it's important I guess I don't mind.

// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to