This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


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

Linking against different glibc version?


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





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