Keep in mind compiling these is going to be brutal on a modern system. A lot of the dependencies are just no longer available.
IMO the best thing to do if you want make the binary is spin up a virtual machine and download the multiple CD / DVDs for the complete install of an older linux along with all the packages:
So this *may* help a bit
https://cdimage.debian.org/cdimage/archive/7.11.0/i386/iso-dvd/And if you intend to use wallet functionality with proper compatibility, that means you have to install Berkeley DB 4.8. Bitcoin Core provide script to install it[1], but we don't know whether it'll work on older OS. If it doesn't that means you need to check either Debian 6, 7 or 8 which seems to include Berkeley DB 4.8[2].
[1]
https://github.com/bitcoin/bitcoin/blob/v24.0/contrib/install_db4.sh[2]
https://wiki.debian.org/BerkeleyDBI believe ubuntu 16.04 is still able to build the old versions with some additional libs added in thanks for the tip I will give this a go.
It's more for reference than anything else and some testing locally.
Cheers guys locking topic now
Sorry ETHBitcoin i'm out of merits ATM, IOU