It was probably done manually back then, without a build script. However, you don't have to use the old versions of gcc and glibc - their libs are backwards compatible, it's perfectly safe to build newer versions of both and run old software on them.
↧