svn commit: r242894 - head/lib/libc/gen

Dimitry Andric dim at FreeBSD.org
Sun Nov 11 13:28:05 UTC 2012


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


More information about the svn-src-all mailing list