LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-29-2004, 05:05 PM   #1
philipuso
LQ Newbie
 
Registered: Aug 2004
Posts: 7

Rep: Reputation: 0
will compiliing statically save me space over shared libs?


im using ratpoison window manager. there are 1 or 2 apps that i would like from gnome & kde. gthumb and lmusic from lindows. would compiling these statically with the needed kde & gnome libs save me space compared to installing all the shared libs needed by these 2 apps. i guess what im really asking is if the apps use all of each needed library or a few functions of each library dependency when they are statically compiled? also how does the static compiling process work for an app? are needed dependencies separated from the rest of the system and you tell the linker explicitly where to find them when statically compiling the app? any pointers on the process would be appreciated.
 
Old 08-29-2004, 05:14 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Hi, and welcome to LQ!

That's hard to answer, it really depends on how the
libraries are interdependent ... the only way to really
find out is to run ldd against them. With dynamic linkage
you can always remove the ones you know you won't
need, too.

But if you happen to have more than one KDE app and
more than one Gnome app you intend to use they'll both
be VERY chubby.... the difference can be quite big, if you
for instance compile a cout << "Hello, World!" app with
static linkage you get a 1.5 MB executable as opposed
to a 140K ...

As for the specifying: you'll have to use the products
configure script to tell it to use static linkage, and if
any of the components aren't built with support for
static linkage you'll have to recompile those as well.


Cheers,
Tink

Last edited by Tinkster; 08-29-2004 at 05:16 PM.
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FYI: shared libs and iostream (C++) ta0kira Programming 18 10-26-2007 06:48 AM
shared libs help spatula Linux - Software 3 12-14-2005 03:48 AM
Recompile ALL shared libs? ta0kira Programming 3 06-13-2005 12:49 AM
Qt Libs Static or Shared magicm Slackware 2 10-15-2003 05:05 AM
shared libs hanzerik Linux From Scratch 2 03-14-2002 01:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:02 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
Open Source Consulting | Domain Registration