From: Robert Bradshaw Date: Fri, 21 Jan 2011 02:14:01 +0000 (-0800) Subject: OS X doesn't actually need libm. X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=2f0eb188823a79b239b8a3d09dfaea486357f1c8;p=cython.git OS X doesn't actually need libm. --- diff --git a/src/tutorial/external.rst b/src/tutorial/external.rst index ec0022c8..35df8f4c 100644 --- a/src/tutorial/external.rst +++ b/src/tutorial/external.rst @@ -38,8 +38,8 @@ Cython also provides declarations for the C math library:: cdef double f(double x): return sin(x*x) -However, this is a library that is not linked by default on Unix-like -systems, such as Linux or MacOS-X. In addition to cimporting the +However, this is a library that is not linked by default on some Unix-like +systems, such as Linux. In addition to cimporting the declarations, you must configure your build system to link against the shared library ``m``. For distutils, it is enough to add it to the ``libraries`` parameter of the ``Extension()`` setup::