Re: option -pthread in LDADD

nia <[email protected]>
Newsgroups gmane.os.netbsd.devel.toolchain
Message-ID <[email protected]>
On Sun, Nov 28, 2021 at 01:30:14AM +0100, Roland Illig wrote:
> Hi,
> 
> On https://releng.netbsd.org/cgi-bin/builds.cgi, the lint builds
> currently fail since lint cannot handle the option -pthreads. This
> option has been added in sbin/cgdconfig/Makefile on 2021-11-22.
> 
> Is it OK to add the option -pthreads to LDADD? If so, the 3 lint
> commands in share/mk/bsd.*.mk probably need to be adjusted to filter out
> -pthreads. Or maybe better, filter out anything but -llib and -Llibdir,
> as this would allow me to occasionally add --coverage to LDADD for
> testing purposes.
> 
> If it's not OK to add -pthreads to LDADD, where should it go instead?
> 
> Roland

Pardon my ignorance, but why does lint need to concern itself with
link-stage flags? lint by definition shouldn't be linking anything.
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.