[Discuss] Compiling a binary
p.willis at telus.net
p.willis at telus.net
Wed Sep 27 15:38:40 PDT 2006
Quoting Hans Oeste <hoeste at shaw.ca>:
> Is there a parameter that I can pass to ./configure to make it produce a
> static fully linked binary?
What libraries do you want embedded in your application?
Assuming you want a binary that will run on any system
regardless of what system libraries are there:
To statically link system libraries into your
binary would also require you to link all of the dependencies
for those libraries into your binary as well.
use ldd to get a list of dependencies for
your application, create a dependency tree,
make sure you link all those libraries into
your application.
Trouble will come when those libraries
begin to make 'dlopen' calls to paths that don't exist.
Peter
More information about the Discuss
mailing list