[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool/ pulling in wrong stdc++

From: Graham Leggett
Subject: Re: libtool/ pulling in wrong stdc++
Date: Wed, 3 Aug 2005 19:30:39 +0200 (SAST)
User-agent: SquirrelMail/1.4.3a-11.EL4

Peter O'Gorman said:

> It could be coming from an already installed .la file.

I did a complete machine grep. The only references to libstdc++ within an
.la file on this machine are in itself, or in the .la files
of the two projects.

libstdc++ is not found in any other .la file on this machine.

> Could you please
> post
> the actual libtool link line and the resulting gcc or ld invokation.

The link line generated by libtool is:

/bin/bash ../../libtool --tag=CC --mode=link gcc  -I.. -I../..
-I/usr/local/include/libxml2  -L/usr/local/lib -R/usr/local/lib -lxml2 -lz
-lpthread -liconv -lm -lsocket -lnsl -o -rpath
/udd001/hoops/usr/lib  version.lo ../rtxsrc/
../rtxmlsrc/ eod/ -lxml2 -liconv
-lnsl -lsocket -lz -lm -lc

The corresponding gcc invocation is:

gcc -shared -Wl,-h -Wl, -o
.libs/  .libs/version.o -Wl,-z
-Wl,-z -Wl,defaultextract  -R/usr/local/lib -R/usr/local/lib -R/usr/lib
-R/usr/openwin/lib -R/usr/local/BerkeleyDB.4.2/lib -R/usr/local/ssl/lib
-L/usr/local/lib -L/usr/lib -L/usr/openwin/lib
-L/usr/local/BerkeleyDB.4.2/lib -L/usr/local/ssl/lib
-L/usr/local/lib/../sparc-sun-solaris2.8/lib -lpthread -lintl
/usr/local/lib/ -L/usr/ccs/bin -L/usr/ccs/lib
/usr/local/lib/ /usr/local/lib/ -lnsl -lsocket -lz
-lm -lc -lc

I am busy trying to figure out why gcc is being used for linking.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]