summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2012-11-11 13:28:04 +0000
committerdim <dim@FreeBSD.org>2012-11-11 13:28:04 +0000
commit551d372a1bddcd79984b86718d69d54076349901 (patch)
tree01c54801f6d50f3d78153131e9595fcd6b6bff61 /lib
parentc5c5ec362b5225171d2dc88e336c26a6c429a143 (diff)
downloadFreeBSD-src-551d372a1bddcd79984b86718d69d54076349901.zip
FreeBSD-src-551d372a1bddcd79984b86718d69d54076349901.tar.gz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/isnan.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/gen/isnan.c b/lib/libc/gen/isnan.c
index 64b0ac1..72c2868 100644
--- a/lib/libc/gen/isnan.c
+++ b/lib/libc/gen/isnan.c
@@ -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
OpenPOWER on IntegriCloud