LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-12-2004, 03:11 PM   #1
karlan
Member
 
Registered: Aug 2003
Location: San Francisco, California
Distribution: Slackware
Posts: 158

Rep: Reputation: 30
Compiling Linux Binaries for use with other x86 systems?


I want to be able to compile a program and copy the binary(also copying the [compiled] source tree) to a cd, do this with many programs, and create scripts which allow to quickly/easily intialize/install the programs.
What I was wondering was:
1) What is the deals with staticly linking the binaries?....Good/bad? Would They need to be linked against generic x86 libs?
2) What are some NON stuburn programs in regards to where they are installed, which are nice to have for bootable distros easily and quickly?
3) is 386 generic x86?
 
Old 03-12-2004, 06:53 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,509

Rep: Reputation: 177Reputation: 177
"1) What is the deals with staticly linking the binaries?....Good/bad? Would They need to be linked against generic x86 libs?"

Dynamic linking uses memory much more efficiently than static linking:
When a library routine is dynamically linked then there is only one copy of that routine in memory no matter how many programs are using it simultaneously. When a library routine is statically linked then that routine can only be used by the program that it is linked to. If you have several programs using the same statically linked program at the same time then you have several copies of the program in memory at the same time.

If you are using dynamic linking then all programs in the system must be compiled against the same library versions. This is kept straight by the Linux distributors when they compile the source to put in their distribution.

If you are distributing binaries then you have to allow that the libraries on the users' systems can be any version. By statically linking the binaries to their library routines your binaries will not have to be compatible with each user's dynamic libraries. However your binaries will be memory hogs and knowledgable users will prefer to use dynamically liked programs.

"2) What are some NON stuburn programs in regards to where they are installed, which are nice to have for bootable distros easily and quickly?"

I don't understand the question.

"3) is 386 generic x86?"

Yes.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Last edited by jailbait; 03-12-2004 at 06:55 PM.
 
Old 03-13-2004, 02:46 PM   #3
karlan
Member
 
Registered: Aug 2003
Location: San Francisco, California
Distribution: Slackware
Posts: 158

Original Poster
Rep: Reputation: 30
by questin # 2 i mean programs like gtk-gnutella, which produces 1 binary, that doesn't get its panties in a rag if it can't find every configuration file in every desired place, it just runs!
 
  


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
Compiling OpenDarwin 8.1 <--(EIGHT POINT ONE) for x86 expert01 Linux - Software 1 06-30-2005 02:15 PM
compiling kernels for different systems alaios Linux - General 2 11-06-2004 03:48 PM
Solaris 9 for x86 systems cmf5150 Solaris / OpenSolaris 5 08-19-2003 12:39 AM
Solaris 9 for x86 systems cmf5150 Linux - Newbie 1 08-07-2003 10:13 PM
MacOS X coming to x86 systems! Paul Parr Linux - General 3 04-15-2003 08:22 PM


All times are GMT -5. The time now is 01:26 PM.

Main Menu
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