From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7479 invoked by alias); 18 Nov 2003 11:05:24 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 7472 invoked from network); 18 Nov 2003 11:05:20 -0000 Received: from unknown (HELO ganesh.ctd.hcltech.com) (202.54.64.2) by sources.redhat.com with SMTP; 18 Nov 2003 11:05:20 -0000 Received: by GANESH with Internet Mail Service (5.5.2657.72) id ; Tue, 18 Nov 2003 16:35:13 +0530 Message-ID: <9F54AA5915501745A385AF7CBDC7E8716DA8AD@HARITHA.ctd.hcltech.com> From: "Bansidhar Arvind Deshpande - CTD, Chennai." To: gcc-help@gcc.gnu.org Subject: ld -static option. Date: Tue, 18 Nov 2003 11:05:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-SW-Source: 2003-11/txt/msg00241.txt.bz2 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