Mercurial > cpython-lru_cache-weakref
diff Objects/floatobject.c @ 6537:25505e563b37 legacy-trunk
Hack suggested by Matthias Klose to pull in all relevant entry points
in libmath.a so they are available to mathmodule.so (in case it is
shared). While this still gets triggered on Solaris 2.x, this appears
to be harmless there.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 31 Oct 1997 17:00:30 +0000 |
| parents | 80d24364b932 |
| children | 48141da518df |
line wrap: on
line diff
--- a/Objects/floatobject.c Fri Oct 31 16:55:51 1997 +0000 +++ b/Objects/floatobject.c Fri Oct 31 17:00:30 1997 +0000 @@ -83,6 +83,16 @@ extern double pow Py_PROTO((double, double)); #endif +#ifdef sun +/* On SunOS4.1 only libm.a exists. Make sure that references to all + needed math functions exist in the executable, so that dynamic + loading of mathmodule does not fail. */ +double (*_Py_math_funcs_hack[])() = { + acos, asin, atan, atan2, ceil, cos, cosh, exp, fabs, floor, + fmod, log, log10, pow, sin, sinh, sqrt, tan, tanh +}; +#endif + /* Special free list -- see comments for same code in intobject.c. */ static PyFloatObject *free_list = NULL; #define BLOCK_SIZE 1000 /* 1K less typical malloc overhead */
