Subject: Re: g++ does not find libgcc
To: grant beattie <>
From: Georg Schwarz <>
List: tech-pkg
Date: 03/28/2004 20:41:18
> > When using the pkgsrc c++ (from lang/gcc) by setting
> > CXX=/usr/local/pkg/gcc-2.95.3/bin/g++ it in many cases cannot find
> > libgcc.
> try setting GCC_REQD=2.95 in /etc/mk.conf instead of overriding CC
> and/or CXX.

yes, this works.
However, it does work only if PKGSRC_COMPILER is not set. Once PKGSRC_COMPILER
is set, that compiler is being used regardless of the GCC_REQD setting.
Also, CC_VERSION is not set correctly. It reads gcc-0. I would have
expected it to be gc-2.95.3. Could it be that buildlink expects gcc to
be in the shell path?

> pkgsrc has a compiler framework in mk/compiler which is designed to
> handle the location of gcc libraries and amongst other things.

/usr/local/pkg/gcc-2.95.3/bin/g++ should be usable as a standalone as well,
shouldn't it?

Georg Schwarz     +49 177 8811442