This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Adding a function to glibc?
I did this:
$ gcc -I/${nheaders} -I/${nkheaders} \
--sysroot=${SYSROOT} \
-Wl,--rpath=${SYSROOT}/lib \
-Wl,--dynamic-linker=${SYSROOT}/lib/ld-linux.so.2
And I got this:
/usr/bin/ld: this linker was not configured to use sysroots
collect2: ld returned 1 exit status
I removed --sysroot:
$ gcc -I/${nheaders} -I/${nkheaders} -Wl,--rpath=${SYSROOT}/lib
-Wl,--dynamic-linker=${SYSROOT}/lib/ld-linux.so.2/usr/lib/gcc/i586-redhat-linux/4.4.0/../../../crt1.o:
In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status