Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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).
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.