This is the mail archive of the libc-hacker@sourceware.org mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hi! __libc_pthread_functions is only in shared libs, not *.a. This patch fixes undefined reference to `__libc_pthread_functions' when linking statically linked programs. 2006-08-25 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/libc_pthread_init.c (freeres_libpthread): Only define ifdef SHARED. --- libc/nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c.jj 2006-08-25 11:01:24.000000000 +0200 +++ libc/nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c 2006-08-25 11:53:28.000000000 +0200 @@ -58,9 +58,10 @@ __libc_pthread_init (ptr, reclaim, funct #endif } - +#ifdef SHARED libc_freeres_fn (freeres_libptread) { if (__libc_pthread_functions.ptr_freeres != NULL) __libc_pthread_functions.ptr_freeres (); } +#endif Jakub
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |