Nicolas Cannasse <[EMAIL PROTECTED]> (on Wed, 14 Feb 2007 17:28:59 +0100):

  > The good solution would be to find a way to configure my gcc so it's
  > using pre-2.4 glibc by default. Any tip is welcome :)

i heartily recommend against downgrading libc on your system- all dll hell will 
break loose.

linking against another glibc doesnt seem as easy as linking against some other 
shared lib. looks like you need a special toolchain (gcc, prob'ly binutils) and 
some other basic libs that libc/gcc depend on- i've hit librt and libpthread.. 

there are some tools around for building "cross-toolchains", which is really 
what you need. on gentoo, there's crossdev which i have *a little* XP with, for 
debian, scratchbox seems to be the preferred choice. those are used primarily 
to compile for arm and other embedded platforms, though both also cater for 
i386-pc-linux-gnu (with provisions for using libc-2.3). 

at least crossdev also targets xmingw (win32). sadly, compiling for OSX on 
linux still requires some hacking (i have a running GNU C compiler (ie, gcc but 
no C++) and linker, but failed to recreate it again when i tried to properly 
document my steps :/ ), [ppc|i686]-apple-darwin require odcctools instead of 
binutils, making it a lot harder to integrate in existing environments like 
crossdev. but even without OSX, this calls for a cross-compilation server... 

looks like i need to upgrade my baselayout.. i admit my gentoo installation is 
3 years old and i never upgraded libc. seems the current editions of major 
distributions all run glibc 2.4 by now, so this is maybe comparable to 
requiring OSX 10.4 instead of 10.3...

-dan

-- 
http://0xDF.com/
http://iterative.org/

-- 
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to