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]
Other format: [Raw text]

Re: gcc question


> 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".


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