relinking a program with shared library

Marcin Kasprzak mkasprzak@autograf.pl
Mon Dec 29 15:22:00 GMT 2008


Hello,
I wonder to know if it is possible to somehow perform 
a static (re)linking of already compiled binary that uses a shared libs?
For example I have a binary "bin" which depends on "libA.so" and "libB.so". 
Would it be possible to relink it statically so that both libraries 
would be included within "bin"? 
[ I don't have access to source code of that program ]

It would be even better if such a command could work recursively, 
in case for example "libA.so" depends on "libA1.so" and "libA2.so".

I would appreciate any help from your side,  thanks.

-- 
Marcin




More information about the Gcc-help mailing list