From 551d372a1bddcd79984b86718d69d54076349901 Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 11 Nov 2012 13:28:04 +0000 Subject: 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 --- lib/libc/gen/isnan.c | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.1