This is the mail archive of the gcc-help@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]

ld -static option.


Hi all,

I am using gcc 2.96. I am wondering the working of -static option given for
ld. What is the exact functionality of this. 
e.g 
     ld a.o -static -L./ -lmylib -o a.out

In above example does the -static option apply only for mylib which is
specified
by -l or it is applied for all of the libraries to generated a.out.
Generically 
does -static controls only to the libraries specified by -l or all of the
libraries
taken by ld to generate the executable ? 
I am also interested in hidden functionality of -static if exists. 

Thanks,

--Bansidhar


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