gcc question

John Anthony Kazos Jr. jkazos@vt.edu
Sat May 24 13:55:00 GMT 2003


 > Each time I compile and link my library source code, the compiler add
 > the prefix lib to the compiled file name.
 >
 > Which is the option that I need to pass to gcc to tell the
 > compiler/linker not to add the prefix lib at the beginning of the linked
 > file ?

I'm interested in the answer to this question, as well. I'd also like to 
know if there's a way to adjust existing programs. For example, running 
ldd() on an executable shows me a reference to "/lib/ld-linux.so.2", and 
I'd like that to be a reference simply to "ld-linux" so it will 
automatically find the ld-linux.so file.

If I'm misunderstanding how it works, and it really does need a full path 
(which is stupid, but oh well), then I'd like to be able to change it to a 
reference to "/some/where/ld-linux.so".



More information about the Gcc mailing list