From owner-svn-src-all@FreeBSD.ORG Sun Nov 11 13:28:04 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E0C19F80; Sun, 11 Nov 2012 13:28:04 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id C373A8FC08; Sun, 11 Nov 2012 13:28:04 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qABDS4BH095125; Sun, 11 Nov 2012 13:28:04 GMT (envelope-from dim@svn.freebsd.org) Received: (from dim@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qABDS4TV095124; Sun, 11 Nov 2012 13:28:04 GMT (envelope-from dim@svn.freebsd.org) Message-Id: <201211111328.qABDS4TV095124@svn.freebsd.org> From: Dimitry Andric Date: Sun, 11 Nov 2012 13:28:04 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242894 - head/lib/libc/gen X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Nov 2012 13:28:05 -0000 Author: dim Date: Sun Nov 11 13:28:04 2012 New Revision: 242894 URL: http://svnweb.freebsd.org/changeset/base/242894 Log: Add an explanatory comment to lib/libc/gen/isnan.c about the fix to make static linking with libc and libm work. Requested by: jilles MFC after: 1 week X-MFC-With: 242879 Modified: head/lib/libc/gen/isnan.c Modified: head/lib/libc/gen/isnan.c ============================================================================== --- head/lib/libc/gen/isnan.c Sun Nov 11 12:21:51 2012 (r242893) +++ head/lib/libc/gen/isnan.c Sun Nov 11 13:28:04 2012 (r242894) @@ -33,6 +33,11 @@ /* * XXX These routines belong in libm, but they must remain in libc for * binary compat until we can bump libm's major version number. + * + * Note this only applies to the dynamic versions of libm and libc, so + * for the static and profiled versions we stub out the definitions. + * Otherwise you cannot link statically to libm and libc at the same + * time, when calling both functions. */ #ifdef PIC