Re: Invoking static library automatically

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

 



"Rohit Arul Raj" <rohitarulraj@xxxxxxxxx> writes:

> I have built a static runtime library and i want the linker to access
> it automatically without having to pass it explicitly.
> 
> Are there any environmental variables available to make this happen?

I'm not aware of any environment variable which directs the linker to
automatically include a library.  If there were one, it would be
documented in the linker manual:
    http://sourceware.org/binutils/docs-2.17/ld/index.html

You can force the linker to always include a library by changing the
linker script, but of course then you have to tell the linker to use
your new linker script.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux