LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 05-06-2010, 08:32 AM   #1
n3wb
LQ Newbie
 
Registered: May 2010
Posts: 6

Rep: Reputation: 0
Question 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.
 
Old 05-07-2010, 02:04 AM   #2
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 670

Rep: Reputation: 134Reputation: 134
Quote:
Originally Posted by n3wb View Post
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.
 
Old 05-12-2010, 05:33 AM   #3
n3wb
LQ Newbie
 
Registered: May 2010
Posts: 6

Original Poster
Rep: Reputation: 0
I almost forgot to say THANK YOU! <3 That was exactly what I was looking for. I really didn't expect it to exist.
 
Old 05-12-2010, 06:14 AM   #4
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 670

Rep: Reputation: 134Reputation: 134
Quote:
Originally Posted by n3wb View Post
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
 
  


Reply

Tags
compiling, dynamic, libraries, library, static


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
static and dynamic libraries nesta Programming 11 09-04-2011 09:36 PM
Static libraries vs shared Libraries catallergy Linux - Newbie 2 03-16-2010 02:30 PM
how to create and include dynamic labraries dont_stop_me Programming 2 10-11-2007 02:28 PM
Static vs Dynamic Big Al Linux - Networking 2 12-08-2003 04:10 PM
NS with static or dynamic IP cijunet Linux - Networking 3 05-09-2003 12:04 AM


All times are GMT -5. The time now is 04:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration