Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Nov 2012 13:28:04 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r242894 - head/lib/libc/gen
Message-ID:  <201211111328.qABDS4TV095124@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211111328.qABDS4TV095124>