tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: option -pthread in LDADD



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.


Home | Main Index | Thread Index | Old Index