Alex Rivera | Logout

How to statically-link a complex program

Asked 2009-06-11T20:36:34.483
29

In Linux, downloaded a program source and want it to be statically linked. Have a huge Makefile there, I

./configure
make

to compile. prehpes it's a bit too general to ask, but how can I make the binary statically linked?

EDIT: the reason for this is wanting to make sure the binary will have no dependencies (or at least as few as possible), making it possible to run on any Linux based computer, even one without Internet connection, and non-updated Linux.

Edit
Report

1 Answer

2

If you cannot compile a static binary, I've had good results using Statifier.

answered 2009-06-12T16:07:18.943

Your Answer