Subject: g++ does not find libgcc
To: None <tech-pkg@netbsd.org>
From: Georg Schwarz <geos@epost.de>
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
pkgsrc/graphics/plotutils-nox11/work/plotutils-2.4.1/config.log:

configure:4596: /usr/local/pkg/gcc-2.95.3/bin/g++ -o conftest -O2
-I/usr/local/p
kg/include -I/usr/local/pkg/include -L/usr/local/pkg/lib
-Wl,-rpath,/usr/local/p
kg/lib conftest.C  -lmx 1>&5
/usr/bin/../lib/ld:
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
environment?

-- 
Georg Schwarz    http://home.pages.de/~schwarz/
 geos@epost.de     +49 177 8811442