As per summary, the mklib script in Mesa 6.5.3 does not accept the parameter -pthread for the linking parameters; such a parameter is used on some platforms to enable the default implementation of Posix threads, and as such is present as if it were a library. The attached patch adds -pthread to DEPS verbatim. Thanks, Diego
Created attachment 9889 [details] [review] mesa-6.5.3-pthread.patch
Are you using mklib for a projects outside of Mesa? I don't see any Mesa configs that use -pthread (they're all -lpthread as far as I can see).
Nope, it's just that Gentoo's ebuild for Mesa passes the output of pkg-config --libs x11-xcb to the Mesa build system, which in turns get it into mklib, and in this case it uses -pthread (coming from libX11's pkg-config data, with pkg-config configured, for Gentoo/FreeBSD, to get also the .private mappings). It's a domino effect.
OK, fixed in git.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.