This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: using different lib version


On Apr 17, 2001, Der Herr Hofrat <der.herr@hofr.at> wrote:

>  I already once posted the question of how to compile glibc 2.0.7 apps on 
>  a box running 2.1.X . What I was told is to use -nostdlib and pass the 
>  path to glibc-2.0.7 with -L and then list all libs explicidly (-lc etc.)
>  this works for many apps, but always generates errors durinc copilation
>  and in some cases results in apps not working corectly .

Use -nodefaultlibs instead of -nostdlib, so that the crt files get
linked in.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]