compiler info in kernel identification string

Mateusz Guzik mjguzik at gmail.com
Sun Dec 23 21:00:27 UTC 2012


On Sun, Dec 23, 2012 at 03:18:14PM +0200, Andriy Gapon wrote:
> on 15/11/2012 22:43 Andriy Gapon said the following:
> > on 14/11/2012 01:43 Mateusz Guzik said the following:
> >> Hello,
> >>
> >> avg@ suggested to include compiler version in the kernel so that it's
> >> present in uname (and one can easly tell what was used to compile it).
> >>
> >> Here is my attempt:
> >> http://people.freebsd.org/~mjg/patches/newvers-compiler.diff
> > 
> > When are you committing this?
> 
> It seems that this effort has stuck?..
> 
> Here is a change that I am using locally.  It doesn't change uname output at
> all, but rather adds a compiler version string to the kernel banner.
> 

I had other patch in this thread that did exactly that + added
sysctl kern.compiler:

http://people.freebsd.org/~mjg/patches/compiler-info.diff

> I may even commit this :)
>

So, if that matters, I have no objections to your patch. However I'd like
to see kern.compiler-like sysctl added.

Also if you like feel free to take my patch and improve it (your compiler
detection seems to be more robust).

-- 
Mateusz Guzik <mjguzik gmail.com>


More information about the freebsd-current mailing list