Author: Alex Gaynor <alex.gay...@gmail.com> Branch: Changeset: r53299:dadcd1b0f987 Date: 2012-03-11 12:24 -0700 http://bitbucket.org/pypy/pypy/changeset/dadcd1b0f987/
Log: osx fix? diff --git a/pypy/module/__pypy__/interp_time.py b/pypy/module/__pypy__/interp_time.py --- a/pypy/module/__pypy__/interp_time.py +++ b/pypy/module/__pypy__/interp_time.py @@ -1,3 +1,5 @@ +import sys + from pypy.interpreter.error import exception_from_errno from pypy.interpreter.gateway import unwrap_spec from pypy.rpython.lltypesystem import rffi, lltype @@ -5,11 +7,15 @@ from pypy.translator.tool.cbuild import ExternalCompilationInfo +if sys.platform.startswith("linux"): + LIBRARIES = ["rt"] +else: + LIBRARIES = [] class CConfig: _compilation_info_ = ExternalCompilationInfo( includes=["time.h"], - libraries=["rt"], + libraries=LIBRARIES, ) HAS_CLOCK_GETTIME = rffi_platform.Has('clock_gettime') _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit