This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: [LRP] Help! Compiling for glibc-2.0.7 under redhat-6.0 (libc-2.1.1)
- To: noel@burton-krahn.com
- Subject: Re: [LRP] Help! Compiling for glibc-2.0.7 under redhat-6.0 (libc-2.1.1)
- From: Dirk Nuyens <dirkn@sicom.nl>
- Date: Mon, 21 Jun 1999 10:43:54 +0200
- Cc: linux-router@linuxrouter.org, glibc-linux@ricardo.ecn.wfu.edu
- References: <19990621065850.13447.qmail@burton-krahn.com>
- Reply-To: glibc-linux@ricardo.ecn.wfu.edu
Hi,
For dynamic resolving against another library then installed you should
do (for BASH):
$ export LD_LIBRARY_PATH=/path/to/other/libraries:$LD_LIBRARY_PATH
you can then test with 'ldd' if your system finds the libraries you want
it to use
For compiling against those other libraries you need the headers for
those libraries installed somewhere.
I am not sure, but I guess you could specify this in a spec file or (and
here I am sure of) you can specify to not use the standard include files
but only the directories you list with -I*, herefor you need to give the
'-nostdinc' (no standard includes) and the '-nostdlib' (no standard
libraries), for the libraries you specify -L* ofcourse....
cu
dirk
Noel Burton-Krahn wrote:
> Hi,
>
> I am trying to compile programs to run under linux-router 2.9.4, which
> uses glibc-2.0.7. Unfortunately, my development machine runs
> redhat-6.0 which uses glibc-2.1.1. The two glibc's don't seem to like
> each other. Programs that I compile under glibc-2.1.1 either die or
> croak 'undefined symbol: _dl_global_scope_end' under glibc-2.0.7.
>
> Is there some magic combination of LD_LIBRARY_PATH and gcc flags which
> will allow me to link against glibc-2.0.7?
>
> --Noel
>
> _______________________________________________
> linux-router maillist - linux-router@linuxrouter.org
> http://www.linuxrouter.org/mailman/listinfo/linux-router
--
If you can't learn to do it well, learn to enjoy doing it badly.
Dirk Nuyens