Author: David Schneider <david.schnei...@picle.org> Branch: Changeset: r56591:732b8dc427bc Date: 2012-08-06 09:09 +0200 http://bitbucket.org/pypy/pypy/changeset/732b8dc427bc/
Log: invert logic to use -rt, because it also doesn't work on mac os 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,5 +1,5 @@ from __future__ import with_statement -import os +import sys from pypy.interpreter.error import exception_from_errno from pypy.interpreter.gateway import unwrap_spec @@ -7,10 +7,11 @@ from pypy.rpython.tool import rffi_platform from pypy.translator.tool.cbuild import ExternalCompilationInfo -if os.name == 'nt': +if sys.platform == 'linux2': + libraries = ["rt"] +else: libraries = [] -else: - libraries = ["rt"] + class CConfig: _compilation_info_ = ExternalCompilationInfo( _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit