This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Adding a function to glibc?
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.