linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* gcc -static
@ 2007-03-13 17:23 patel nirav
  2007-03-13 17:35 ` Thomas Juerges
  2007-03-13 23:41 ` Ameet Patil
  0 siblings, 2 replies; 3+ messages in thread
From: patel nirav @ 2007-03-13 17:23 UTC (permalink / raw)
  To: rtai, linux ppc

[-- Attachment #1: Type: text/plain, Size: 292 bytes --]

Hello all,
Can any body tell me what is the use of " - static" option for gcc compilation ?



Nirav J Patel
M.Tech(CSE),
Nirma University,
Ahmedabad-382481.
9925138959
 
---------------------------------
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.

[-- Attachment #2: Type: text/html, Size: 448 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gcc -static
  2007-03-13 17:23 gcc -static patel nirav
@ 2007-03-13 17:35 ` Thomas Juerges
  2007-03-13 23:41 ` Ameet Patil
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Juerges @ 2007-03-13 17:35 UTC (permalink / raw)
  To: patel nirav; +Cc: rtai, linux ppc

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/13/2007 11:23 AM, patel nirav wrote:
> Hello all, Can any body tell me what is the use of " - static" option
> for gcc compilation ?

man gcc:

- -static
        On systems that support dynamic linking, this prevents linking
        with the shared libraries.  On other systems, this option has no
        effect.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFF9uDGMiyRSD9s+zURAlvnAJ41AjtlgyJFabQ98Nm0Ry1alNy1LgCfU9LY
5Yjt3BobB15FxEn5hXs+MAs=
=KS0W
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gcc -static
  2007-03-13 17:23 gcc -static patel nirav
  2007-03-13 17:35 ` Thomas Juerges
@ 2007-03-13 23:41 ` Ameet Patil
  1 sibling, 0 replies; 3+ messages in thread
From: Ameet Patil @ 2007-03-13 23:41 UTC (permalink / raw)
  To: patel nirav; +Cc: rtai, linux ppc

"-static" option tells gcc to generate an executable that will run by itself. All the runtime libraries (eg. glibc) are linked into the application code to form one big executable.

-Ameet


patel nirav wrote:
> Hello all,
> Can any body tell me what is the use of " - static" option for gcc 
> compilation ?
>
>
>
> Nirav J Patel
> M.Tech(CSE),
> Nirma University,
> Ahmedabad-382481.
> 9925138959
>
> ------------------------------------------------------------------------
> Bored stiff? 
> <http://us.rd.yahoo.com/evt=49935/*http://games.yahoo.com> Loosen up...
> Download and play hundreds of games for free 
> <http://us.rd.yahoo.com/evt=49935/*http://games.yahoo.com> on Yahoo! 
> Games.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-03-13 23:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-13 17:23 gcc -static patel nirav
2007-03-13 17:35 ` Thomas Juerges
2007-03-13 23:41 ` Ameet Patil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).