Re: option -pthread in LDADD

Jason Thorpe <[email protected]>
Newsgroups gmane.os.netbsd.devel.toolchain
Message-ID <[email protected]>

> On Nov 28, 2021, at 2:09 AM, nia <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.