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