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 or view it on GitHub:
https://github.com/xrootd/xrootd/pull/1506#issuecomment-913478218

########################################################################
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