tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: option -pthread in LDADD
> On Nov 28, 2021, at 2:09 AM, nia <nia%NetBSD.org@localhost> wrote:
>
> Pardon my ignorance, but why does lint need to concern itself with
> link-stage flags? lint by definition shouldn't be linking anything.
It links against the lint libraries. But the -pthread option to the compiler also defines some preprocessor macros. So, the right thing to do here is for lint(1) to be taught to do the same things the compiler does when given the -pthread option (define the right preprocessor macros, pull in the the pthread lint library).
-- thorpej
Home |
Main Index |
Thread Index |
Old Index