This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
other/4036: Changed library search path (2.95 vs 3.0)
- To: gcc-gnats at gcc dot gnu dot org
- Subject: other/4036: Changed library search path (2.95 vs 3.0)
- From: wolfgang dot bangerth at iwr dot uni-heidelberg dot de
- Date: 16 Aug 2001 12:33:54 -0000
- Reply-To: wolfgang dot bangerth at iwr dot uni-heidelberg dot de
>Number: 4036
>Category: other
>Synopsis: Changed library search path (2.95 vs 3.0)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Aug 16 05:36:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Wolfgang Bangerth
>Release: unknown-1.0
>Organization:
>Environment:
Sun Solaris 2.7
>Description:
I don't even know whether this is a bug, the docs are very
brief on that, nevertheless: on Sun, gcc2.95 searched
/opt/SUNWspro/lib for libraries given with -l on the link
line, while gcc3 does not do that any more. It's a little
annoying but not that important. There's a more important bug
lurking around the next corner, but see next report.
Regards
Wolfgang
examples/step-1> cat a.cc
int main ()
{};
examples/step-1> c++ a.cc -lsunmath
/usr/local/bin/ld: cannot find -lsunmath
collect2: ld returned 1 exit status
examples/step-1> c++ -v
Reading specs from /home/people/wolf/Config/sparc-sun-solaris2.7/gcc-ss/lib/gcc-lib/sparc-sun-solaris2.7/3.0.1/specs
Configured with: ../gcc/configure --prefix=/home/people/wolf/Config/sparc-sun-solaris2.7/gcc-ss --with-gnu-ld --with-gnu-as --with-ld=/usr/local/bin/ld --with-as=/usr/local/bin/as
Thread model: posix
gcc version 3.0.1 20010814 (prerelease)
examples/step-1> /usr/local/gcc/gcc/bin/c++ a.cc -lsunmath
examples/step-1> /usr/local/gcc/gcc/bin/c++ -v
Reading specs from /usr/local/gcc/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/specs
gcc version 2.95.2 19991024 (release)
>How-To-Repeat:
cat "int main(){};" > a.cc ; c++ a.cc -lsunmath
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: