tech-toolchain archive

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

Re: -std=* for bsd.dep.mk



On Mon, Jul 14, 2014 at 08:11:06PM +0100, Iain Hibbert wrote:
 > I found an issue when compiling NetBSD sources with pcc .. with a modified
 > pcc in any case. It is this.. if the compiler in use does not have GNU C
 > compatibility enabled by default, and requires a switch (eg -std=gnu99
 > which the build framework normally supplies), then when mkdep is run it
 > does use the C preprocessor internally but -std=gnu99 is not passed..
 > causing there to be issues because of the lack of eg __GNUC__ definitions
 > which that would bring in. The source that the depend files are based on,
 > is thus not quite the source that would have been compiled.
 > 
 > so, I would like to fix that by adding flags matching -std=* to the mkdep
 > commandline, for C and C++ sources
 > 
 > any objections to that?

That seems like a good idea in general.

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index