Search:  
Gentoo Wiki

Statically_linked

What is it ?

A statically linked program is a program that does not require dynamic linking with any libraries. All the code that it must execute is contained inside the program. For that reason, it can work even if you have broken all your system.
A good example is sash, which can help you to repair a system without glibc for example.

How to make it ?

The most simple way is to pass -static option to gcc.
Retrieved from "http://www.gentoo-wiki.info/Statically_linked"

Last modified: Wed, 07 Dec 2005 23:58:00 +0000 Hits: 3,305