This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Linking against different glibc version?
- To: "Linux glibc" <glibc-linux at ricardo dot ecn dot wfu dot edu>
- Subject: Linking against different glibc version?
- From: "Roland Schwarz" <roland dot schwarz at chello dot at>
- Date: Mon, 10 Apr 2000 13:57:56 +0200
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
On my system I have installed glibc 2.1.1 (RedHat 6.1).
I compiled library version glibc 2.0.7 and installed it
in /usr/i386-mylib-linux.
Now I want to tell the linker to link (dynamically) against that
library.
Flags in Makefile:
LDFLAGS = -L /usr/i386-mylib-linux/lib
The *Problem* is that the linker apparently uses the
/lib/ld-linux.so.2 dyna linker instead of
/usr/i386-mylib-linux/lib/ld-linux.so.2 resulting in the error:
undefined references to:
_dl_object_relocation_scope
_dl_global_scope_end
_dl_default_scope
I then tried to give the linker the switch
--dynamic-loader /usr/i386-mylib-linux/lib/ld-linux.so.2
but this did not help.
Any ideas?
Roland