building old gcc3 for i386-linux on recent x86-linux?

Florian Weimer fw@deneb.enyo.de
Sun Feb 21 18:12:00 GMT 2016


* Steffen Dettmer:

> How to build a gcc3 host=x86-linux target=i386-old-linux today?
> Are there alternatives?

The best way is to replicate the old development environment, perhaps
using virtualization or emulation.

In general, there is no other way because GCC itself is not
sufficient, you also need the old libraries to link to, in compatible
versions.  The old environment has all that, and is the simplest
approach if some distribution-supplied environment was used in the
first place.

If not, it can be easier to patch the existing binaries to fix the
bugs or add the missing functionality, depending on how complex the
original environment was and how invasive the desired changes are.



More information about the Gcc-help mailing list