LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-11-2005, 10:11 PM   #1
mattengland
Member
 
Registered: Nov 2004
Location: Chicago, IL USA
Posts: 42

Rep: Reputation: 15
How to build one binary for all Redhat systems?


Hello,

My development project's software must run on multiple Redhat-based platforms (All the FedoraCore series, Redhat Enterprise Linux/Centos 4.x and 3.x, possibly Redhat 9). I want to build as few binary flavors as possible. My best scenario would find us building one binary that works on all these platforms.

Is this possible? If not, can I build fewer binary packages then number of platforms, and if so, which build systems should I build on?

Fyi, our software uses SystemV message queues extensively...in case this happens to be system-dependent.

-Matt
 
Old 09-11-2005, 10:49 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Yes, it is possible, assuming it is always i386 hardware. Build it for i386 with no hardware optmization and statically link it. Or make sure the dependencies will always be available and statically link those that won't.
 
Old 09-11-2005, 11:10 PM   #3
mattengland
Member
 
Registered: Nov 2004
Location: Chicago, IL USA
Posts: 42

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Matir
Yes, it is possible, assuming it is always i386 hardware. Build it for i386 with no hardware optmization and statically link it.
Do some platforms (eg, CentOS 3.x, FC-1, RH9) provide a better environment then others to make this build? Also, is the i386 a gcc switch option (I'm the manager of a development group, wanted to give my developers specific options).

I'm also curious if I can somehow get an official word on Redhat about this. Any recommendations on how I can go about getting this?

fyi, We'll definitely control the libraries appropriately (static linking, dependency control, etc).

-Matt
 
Old 09-11-2005, 11:16 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I honestly have no idea about an official word from RH on this. I would make sure to use gcc-3.3, not 4.0 (4.0 is still a bit weird on some things). I think you can use "-march=i386" to make sure everything will run on all platforms, but gcc does most of it by default. Also, make sure you keep your optmization levels down to -O2 or lower... -O3 does some weird things on sub-Pentium systems (if you really care about them).
 
  


Reply



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
read & write binary file error in redhat xcmore Programming 11 06-17-2005 07:48 AM
Binary Compatibility Between Redhat 9 And Fedora lordofring Linux - Software 0 02-14-2005 09:27 PM
Need APT Redhat 8.0 Binary w/all dependancies hdokes Linux - Software 0 01-29-2005 06:11 PM
Systems freezes - HP DL 380 - OS is Linux Redhat 8 kailash Linux - General 2 07-12-2004 04:00 AM
On the RedHat 9.0 how does the cd install the applications? WIth rpm, binary, tgz's?? Laptop2250 Linux - Software 7 11-04-2003 12:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:13 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