Subject: Re: GCC 3.4.1 how to use ?
To: Zafer Aydogan <firstname.lastname@example.org>
From: John R. Shannon <email@example.com>
Date: 09/11/2004 03:55:24
On Friday 10 September 2004 07:04 pm, Zafer Aydogan wrote:
> Dear Newsgroup,
> I installed GCC34 from pkgsrc, where it finished with following message:
> $NetBSD: MESSAGE,v 18.104.22.168 2004/06/29 18:01:24 shannonjr Exp $
> gcc34-3.4.1nb4 has been installed in /usr/pkg/gcc34
> To use this compiler in pkgsrc:
> 1) In your "pre-configure" target:
> .include "../../lang/gcc34/preconfigure.mk"
> 2) .include "../../lang/gcc34/buildlink3.mk"
> The "preconfigure.mk" makefile fragment will override the compiler tools
> selected by ../../mk/compiler.mk to use gcc version 3.4.x.
> I don't get it.
> What should I do to use the new compiler in pkgsrc and at all?
Those instructions refer only to using it in building packages until it's
integrated into pkgsrc/mk/compiler/gcc.mk. You may use this gcc.mk:
and select it by defining:
in you mk.conf file.
Outside of pkgsrc, it's sufficient to define you PATH so that /usr/pkg/gcc34
is searched before /usr/bin.
I'm sorry about any confusion my instructions may have caused.
John R. Shannon