Subject: g++ does not find libgcc
To: None <>
From: Georg Schwarz <>
List: tech-pkg
Date: 03/21/2004 10:26:33
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. As an example, the excerpt from

configure:4596: /usr/local/pkg/gcc-2.95.3/bin/g++ -o conftest -O2
kg/include -I/usr/local/pkg/include -L/usr/local/pkg/lib
kg/lib conftest.C  -lmx 1>&5
Can't locate file for: -lgcc
collect2: ld returned 1 exit status

Even when explicitely setting LD_LIBRARY_PATH to
/usr/local/pkg/gcc-2.95.3/lib/gcc-lib/mips-sgi-irix5.3/2.95.3 things do
not work. The platform is IRIX 5.3, BTW.
Any idea what is going wrong? Is this some issue of the buildlink

Georg Schwarz     +49 177 8811442