Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Oct 2012 18:32:32 +0200 (CEST)
From:      Gerald Pfeifer <gerald@pfeifer.com>
To:        Andriy Gapon <avg@FreeBSD.org>, Brooks Davis <brooks@freebsd.org>
Cc:        toolchain@FreeBSD.org, Gerald Pfeifer <gerald@FreeBSD.org>
Subject:   Re: gcc46 --version incompatible with bsd.compiler.mk
Message-ID:  <alpine.LNX.2.00.1210151732540.2076@tuna.site>
In-Reply-To: <20121015152755.GC10224@lor.one-eyed-alien.net>
References:  <5078102C.3070503@FreeBSD.org> <20121015152755.GC10224@lor.one-eyed-alien.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 12 Oct 2012, Andriy Gapon wrote:
> $ gcc46 --version
> gcc46 (FreeBSD Ports Collection) 4.6.3
> 
> I think that the above should have just "gcc" instead of "gcc46".  The 
> version is reported separately from the compiler name.

I dug into this, and from what I can tell this is basically printing 
argv[0], that is, for the C++ frontend it'll say g++46.

(This is also consistent with GCC as the overall project being all
caps since 1999.)

On Mon, 15 Oct 2012, Brooks Davis wrote:
> Alternatively I could alter bsd.compiler.mk to accept gcc[1-9][0-9] as
> gcc.  You could also set COMPILER_TYPE to override the check entirely.

That would be preferrable, I'd say.  Thanks!

Gerald



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.LNX.2.00.1210151732540.2076>