From owner-cvs-all Thu Apr 30 02:16:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA08005 for cvs-all-outgoing; Thu, 30 Apr 1998 02:16:30 -0700 (PDT) (envelope-from owner-cvs-all@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA07904; Thu, 30 Apr 1998 02:15:46 -0700 (PDT) (envelope-from jb@FreeBSD.org) From: John Birrell Received: (from jb@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id CAA09959; Thu, 30 Apr 1998 02:13:49 -0700 (PDT) Date: Thu, 30 Apr 1998 02:13:49 -0700 (PDT) Message-Id: <199804300913.CAA09959@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-lib@FreeBSD.ORG Subject: cvs commit: src/lib/libc/sys Makefile.inc Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk jb 1998/04/30 02:13:49 PDT Modified files: lib/libc/sys Makefile.inc Log: Build __error.c into libc, but not libc_r. The weak symbol in the file works with libpthread, but when built into libc_r which has a non-weak symbol of the same name, the linker behaves unpredicatably and sometimes links the wrong symbol. The linker behaviour is a byproduct of what the program calls from object to object so it is like winning a lottery if the program actually works. The odds are quite good - 95:1, I think. We need a sure thing, though, so weak symbols can't be used instead of renaming things. Revision Changes Path 1.51 +7 -2 src/lib/libc/sys/Makefile.inc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message