This is the mail archive of the libc-help@sourceware.org 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]
Other format: [Raw text]

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.


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