public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix libpthread.a
@ 2006-08-25 13:02 Jakub Jelinek
  2006-08-25 13:28 ` Ulrich Drepper
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2006-08-25 13:02 UTC (permalink / raw)
  To: Ulrich Drepper; +Cc: Glibc hackers

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix libpthread.a
  2006-08-25 13:02 [PATCH] Fix libpthread.a Jakub Jelinek
@ 2006-08-25 13:28 ` Ulrich Drepper
  0 siblings, 0 replies; 2+ messages in thread
From: Ulrich Drepper @ 2006-08-25 13:28 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Glibc hackers

[-- Attachment #1: Type: text/plain, Size: 101 bytes --]

Applied.

-- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-08-25 13:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-25 13:02 [PATCH] Fix libpthread.a Jakub Jelinek
2006-08-25 13:28 ` Ulrich Drepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).