This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
ld -static option.
- From: "Bansidhar Arvind Deshpande - CTD, Chennai." <bansidhara at ctd dot hcltech dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 18 Nov 2003 16:34:59 +0530
- Subject: 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