FAQ: how to build a statically-linked gcc?

Greg Schafer gschafer@zip.com.au
Wed Oct 15 22:33:00 GMT 2003


On Wed, Oct 15, 2003 at 09:05:03AM -0700, Dan Kegel wrote:
> Can somebody clue me in on the right way to build static gcc binaries?

make BOOT_LDFLAGS="-static" bootstrap

or

make LDFLAGS="-static"

if not bootstrapping. Works for me.

Greg



More information about the Gcc mailing list