LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Using dynamic libraries as static labraries (http://www.linuxquestions.org/questions/linux-general-1/using-dynamic-libraries-as-static-labraries-806299/)

n3wb 05-06-2010 07:32 AM

Using dynamic libraries as static labraries
 
Is there any way to use a dynamic libraries as a static libraries instead when compiling, so that my resulting executable won't have them as dependencies? Even if the only way to do it would be duck ugly, I still want to try it, if there is a way at all.

Valery Reznic 05-07-2010 01:04 AM

Quote:

Originally Posted by n3wb (Post 3959217)
Is there any way to use a dynamic libraries as a static libraries instead when compiling, so that my resulting executable won't have them as dependencies? Even if the only way to do it would be duck ugly, I still want to try it, if there is a way at all.

You can build your executable as usual using dynamic libraries
and then use statifier (http://statifier.sf.net) or Ermine (http://magicErmine.com) to convert dynamically linked executable to self-contained one.
Statifier is licensed under GPL, Ermine is commercial. On the other hand, statifier don't like systems with memory randomization.

n3wb 05-12-2010 04:33 AM

I almost forgot to say THANK YOU! <3 That was exactly what I was looking for. I really didn't expect it to exist.

Valery Reznic 05-12-2010 05:14 AM

Quote:

Originally Posted by n3wb (Post 3965523)
I almost forgot to say THANK YOU! <3 That was exactly what I was looking for. I really didn't expect it to exist.

You are welcome


All times are GMT -5. The time now is 02:42 PM.