diff options
author | dim <dim@FreeBSD.org> | 2012-11-10 21:22:10 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2012-11-10 21:22:10 +0000 |
commit | 464808b6f100795216849a2948e345eeaac23fec (patch) | |
tree | 1fa38f9b82a8ebc3a5099f560b9ce17922134e5a /lib/libc | |
parent | 0a289d546bde4f4a1b513aa568714d69732d3dc1 (diff) | |
download | FreeBSD-src-464808b6f100795216849a2948e345eeaac23fec.zip FreeBSD-src-464808b6f100795216849a2948e345eeaac23fec.tar.gz |
Only define isnan, isnanf, __isnan and __isnanf in libc.so, not in
libc.a and libc_p.a. In addition, define isnan in libm.a and libm_p.a,
but not in libm.so.
This makes it possible to statically link executables using both isnan
and isnanf with libc and libm.
Tested by: kargl
MFC after: 1 week
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/isnan.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/gen/isnan.c b/lib/libc/gen/isnan.c index ec81362..64b0ac1 100644 --- a/lib/libc/gen/isnan.c +++ b/lib/libc/gen/isnan.c @@ -35,6 +35,7 @@ * binary compat until we can bump libm's major version number. */ +#ifdef PIC __weak_reference(__isnan, isnan); __weak_reference(__isnanf, isnanf); @@ -55,3 +56,4 @@ __isnanf(float f) u.f = f; return (u.bits.exp == 255 && u.bits.man != 0); } +#endif /* PIC */ |