PDA

View Full Version : Linux: Compiling for glibc older than 2.3 and scons


Lanz
17th July 2005, 01:31
Hi there, I've just released my mod today (#et.domination on qnet) and tbh I forgot all about checking so it would work with older glibc's. I looked at the scons scripts and tried to find out how to compile for older libs and tried searching here and on the net to find more info about the subject but found nothing. I'm fairly novice when it comes to linux so any info on the subject is very welcomed.

Magik
17th July 2005, 12:28
Easiest solution is to get yourself a distro that comes with the glibc version you need.

Lanz
17th July 2005, 12:51
Yeah for me that's not a problem, I can do whatever I want on my own box. Unfortunately lots of people are renting their game servers and has no control over what versions of glibc that is installed. Most servers has at least 2.3 on but a lot of people are stuck on redhat 7 with the older ones.

Sauron|EFG
17th July 2005, 15:12
I think he means that you should compile your mod on a distro with the older glibc (?).

zinx
17th July 2005, 18:48
Get the headers from glibc 2.2, and add '-isystem /path/to/glibc-2.2-headers' to the CFLAGS or CC or such.

Lanz
18th July 2005, 21:23
Ok, thx a lot for the info Zinx, will bang my head on the subject later again when I'm getting more ready for a release. Linux being good and all, but can be an annoyance when you don't care about the OS but just want a couple of .so files. Easy for a noob to just drown in config files and millions of packages.