Print

Print


To be consistent, shouldn't all linking to -lpthread be replaced with -pthread? Not just for libXrdServer.

Yes, this would be more consistent.

That way the compiler can avoid linking to libpthread on systems with new glibc where the pthread functions are included in glibc.
Those systems have an empty libpthread so that code using -lpthread doesn't fail to build, but maybe that backward compatibility thing goes away in a decade or so.

glibc is not one of these projects that break backwards compatibility, they are always working hard to ensure that even binaries from the 1990s still work (which is important for many users).

Linking with libpthread is required by POSIX, and the empty libpthread.a glibc >= 2.34 provides for supporting it is really trivial.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/pull/1506#issuecomment-913478218", "url": "https://github.com/xrootd/xrootd/pull/1506#issuecomment-913478218", "name": "View Pull Request" }, "description": "View this Pull Request on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1