"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