The author developed a method to run legacy software on modern Linux distributions, specifically Debian 13 Trixie, without relying on outdated container images. This approach involves compiling software from source code using custom GCC versions and managing dependencies through specific RPATH configurations.
The process for GCC involves a bootstrap chain where the system's GCC 14 compiles GCC 13, which then serves as the base for subsequent versions. Each GCC version is installed in a dedicated directory rather than the system default path to prevent conflicts with the host compiler.
To handle incompatible libraries like OpenSSL 3.x, the author compiles required versions from source and embeds paths directly into ELF files using the -Wl,-rpath flag. This ensures that legacy applications use their own dependencies without affecting the host system or requiring environment variables.
The author emphasizes the importance of using -Wl,--disable-new-dtags to ensure that RPATH is used instead of RUNPATH, as the latter does not propagate to transitive dependencies. Additionally, Python's distutils are patched to prevent the automatic injection of flags that would otherwise break the custom library loading mechanism.




