Adding a function to glibc?

Carlos O'Donell carlos@systemhalted.org
Wed Oct 21 23:12:00 GMT 2009


On Wed, Oct 21, 2009 at 6:59 PM, Almohri, Hussain <almohri@gmail.com> wrote:
> I'm compiling this way:
> gcc -nostdinc -I/usr/src/libc/inst2/include
> -I/usr/lib/gcc/i586-redhat-linux/4.4.0/include test.c

You need to add
"-Wl,--dynamic-linker=/usr/src/libc/inst2/lib/ld-linux.so" (or
wherever your new dynamic linker is) and
"-Wl,-rpath=/usr/src/libc/inst2/lib" (a colon seperated list of all
the directories that contain libraries you want to link against).

Cheers,
Carlos.



More information about the Libc-help mailing list