From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23857 invoked by alias); 25 Aug 2006 13:02:14 -0000 Received: (qmail 23821 invoked by uid 22791); 25 Aug 2006 13:02:13 -0000 X-Spam-Check-By: sourceware.org Received: from sunsite.ms.mff.cuni.cz (HELO sunsite.mff.cuni.cz) (195.113.15.26) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 25 Aug 2006 13:02:10 +0000 Received: from sunsite.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1]) by sunsite.mff.cuni.cz (8.13.1/8.13.1) with ESMTP id k7PD207O005256; Fri, 25 Aug 2006 15:02:00 +0200 Received: (from jj@localhost) by sunsite.mff.cuni.cz (8.13.1/8.13.1/Submit) id k7PD20sl005255; Fri, 25 Aug 2006 15:02:00 +0200 Date: Fri, 25 Aug 2006 13:02:00 -0000 From: Jakub Jelinek To: Ulrich Drepper Cc: Glibc hackers Subject: [PATCH] Fix libpthread.a Message-ID: <20060825130159.GK4556@sunsite.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00027.txt.bz2 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 * 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