This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Changing Default Linking options...


On 12 Jun 1999, Alexandre Oliva wrote:

> On Jun 12, 1999, Sean R Melody <srm765@merle.acns.nwu.edu> wrote:
> 
> > /usr/lib is first in /etc/ld.so.conf
> 
> This doesn't matter, lt.so.conf is only used by the run-time dynamic
> linker.  Run `g++ -v -Wl,-v' to re-link your program, and search for
> libstdc++ in the directories that appear after -L options.

I've attached the output to the bottom of this email.

> 
> Make sure the libstdc++ links in
> /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66 are correct.
 
Both the static and dynamic version are soft links to the /usr/lib
libraries.

Here is the output (apologies for the length and the long lines...)
I don't know what is wrong, but hopefully someone else knows what to look
for.
Sean

lin088194:~/b30$ g++ -v -Wl,-v test.cc
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
 /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cpp -lang-c++ -v -undef
-D__GNU
C__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=91 -D__ELF__ -Dunix
-Di386 -D_
_i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__i386__ -D__linux__
-D__unix-D__i386 -D__linux -Asystem(posix) -D__EXCEPTIONS -Asystem(unix)
-Acpu(i386) -Am
achine(i386) -Di386 -D__i386 -D__i386__ test.cc /tmp/ccHoxISg.ii
GNU CPP version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386
Linux/ELF
)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/qt/include
 /usr/include/g++-2
 /usr/local/include
 /usr/i386-redhat-linux/include
 /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/cc1plus /tmp/ccHoxISg.ii
-quiet
 -dumpbase test.cc -version -o /tmp/ccqzXi8o.s

HInux) compiled by GNU C version egcs-2.91.66 19990314/Linux (egcs-1.1.2
release). as -V -Qy -o /tmp/cc38JZoP.o /tmp/ccqzXi8o.s
GNU assembler version 2.9.1 (i386-redhat-linux), using BFD version
2.9.1.0.23
 /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/collect2 -m elf_i386
-dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/crtbegin.o
-L/usr/local/qt/lib -L/usr/local/kde/lib -L/usr/local/lib
-L/usr/local/rvplayer -L/usr/local/qt/lib -L/usr/local/lib
-L/usr/local/rvplayer -L/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66
-L/usr/i386-redhat-linux/lib -v /tmp/cc38JZoP.o -lstdc++ -lm -lgcc -lc
-lgcc /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/crtend.o
/usr/lib/crtn.o
collect2 version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) (i386
Linux/ELF)                                                                              
/usr/bin/ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o
/usr/lib/crti.o /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/crtbegin.o
-L/usr/local/qt/lib -L/usr/local/kde/lib -L/usr/local/lib
-L/usr/local/rvplayer -L/usr/local/qt/lib -L/usr/local/lib
-L/usr/local/rvplayer -L/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66
-L/usr/i386-redhat-linux/lib -v /tmp/cc38JZoP.o -lstdc++ -lm
-lgcc -lc -lgcc /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/crtend.o
/usr/lib/crtn.o
GNU ld version 2.9.1 (with BFD 2.9.1.0.23)                                                                                                                    


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]