On Sat, 4 Jul 1998, Glynn Clements wrote:

>You need a version of gcc which supports libc-5 as a target platform.
>Check in /usr/lib/gcc-lib. If gcc supports multiple platforms they
>will be listed there. E.g., if you have:
>
>  drwxrwxr-x   5 glynn    root         1024 Mar  8 18:21 i586-pc-linux-gnu
>  drwxrwxr-x   5 root     root         1024 Mar  8 19:45 i586-pc-linux-gnulibc1
>
>then you can compile for libc-5 using
>
>       gcc -b i586-pc-linux-gnulibc1 ...

At least you must also use -I and -L. The bad thing is that you need
different shared object for every librarians that you will need to use in
your software. If the program is hello world it is simple to use gcc by
hand, but if you need to recompile other a bit more complex software
against libc5 in a libc6 machines (as debian maintaniers does) you had to
recompile before all shared librarians for libc5 and use the libc5 headers
when compiling with gcc. Probably it' s faster install Debian and you will
have every librarians (from lesstif to e2fslibs to xlib6 and everything
else) usable in gcc or in i486-linuxlibc1-gcc. You will need _only_ to
change the CC variable in the Makefile. It would be a pain for me having
to recompile by hand everything when tomorrow I would need to compile  
a program that must link against mesa linked with libc5, for example. 

Andrea[s] Arcangeli

Reply via email to