static linking with libpthread while using pthread_cond_timeout() fails
Mike Frysinger
vapier@gentoo.org
Wed Nov 14 04:34:00 GMT 2007
trying to link something simple like:
$ cat test.c
main(){pthread_cond_timeout();}
$ gcc -static test.c -lpthread
/usr/lib/gcc/x86_64-pc-linux-gnu/4.2.2/../../../../lib64/libpthread.a(pthread_cond_timedwait.o):
In function `pthread_cond_timedwait':
(.text+0xa7): undefined reference to `__vdso_clock_gettime'
collect2: ld returned 1 exit status
if static linking isnt going to be supported in glibc and in fact has known
bugs, then why are static archives built up/installed at all ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20071114/309bbdf7/attachment.sig>
More information about the Libc-alpha
mailing list