LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   static linking in gcc (http://www.linuxquestions.org/questions/linux-newbie-8/static-linking-in-gcc-771894/)

lavixu 11-27-2009 06:46 AM

static linking in gcc
 
Hi,
I want to link a .elf file statically in GCC. what are the options available?

GooseYArd 11-27-2009 07:07 AM

Quote:

Originally Posted by lavixu (Post 3771299)
Hi,
I want to link a .elf file statically in GCC. what are the options available?

gcc -static

will do the trick


All times are GMT -5. The time now is 01:58 AM.