Re: option -pthread in LDADD
Roland Illig <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.toolchain |
|---|---|
| Message-ID | <[email protected]> |
Am 28.11.2021 um 11:34 schrieb Martin Husemann: > Shouldn't lint learn about -pthread? > > It should be just a shortcut for something like: > > -lpthread -D_REENTRANT=1 -D_PTHREADS=1 I think this knowledge doesn't belong in the source code of lint, I'd rather put it into share/mk/*.mk, just like CPPFLAGS are already translated in sys.mk. If lint would know about -pthread, should it know about -std=... as well, or the various -Wl,... linker options? I'd rather keep all these details away from lint as they are compiler-specific. Roland