tech-toolchain archive

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

Re: option -pthread in LDADD



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


Home | Main Index | Thread Index | Old Index