From 2f0eb188823a79b239b8a3d09dfaea486357f1c8 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Thu, 20 Jan 2011 18:14:01 -0800 Subject: [PATCH] OS X doesn't actually need libm. --- src/tutorial/external.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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:: -- 2.26.2