Adding a function to glibc?

Almohri, Hussain almohri@gmail.com
Thu Oct 22 00:11:00 GMT 2009


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



More information about the Libc-help mailing list