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?


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


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