Page MenuHomeFreeBSD

Safety belt on -lpthread and -lc
ClosedPublic

Authored by bapt on Nov 5 2014, 7:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 4, 12:24 AM
Unknown Object (File)
Mon, Dec 1, 10:39 PM
Unknown Object (File)
Thu, Nov 27, 4:59 PM
Unknown Object (File)
Nov 19 2025, 1:09 AM
Unknown Object (File)
Nov 18 2025, 1:36 AM
Unknown Object (File)
Nov 9 2025, 5:39 AM
Unknown Object (File)
Nov 9 2025, 5:39 AM
Unknown Object (File)
Nov 9 2025, 1:44 AM
Subscribers
None

Details

Reviewers
kib
imp
bdrewery
Summary

Ensure that if -lc and -lpthread are found in the LDADD chain they are always
The to last components of the link chain in the following order:
-lpthread then -lc

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

bapt retitled this revision from to Safety belt on -lpthread and -lc.
bapt updated this object.
bapt edited the test plan for this revision. (Show Details)
bapt added a reviewer: imp.
kib edited edge metadata.

I think this is fine, but please take it with a grain of salt due to my ignorance WRT both build system and make.

Also note that this is good safety belts, but not a complete solution. E.g., it does not help with the problem in r265003, since the buggy order is realized not due to the wrong appearance of -lpthread on the command line, but due to the libraries which required libthr.

This revision is now accepted and ready to land.Nov 6 2014, 8:41 AM