diff -r 782c3b4cbc88 setup.py --- a/setup.py Thu Jun 05 12:07:14 2014 +0200 +++ b/setup.py Thu Jun 05 14:39:27 2014 +0200 @@ -578,7 +578,8 @@ libraries=math_libs) ) # time libraries: librt may be needed for clock_gettime() - time_libs = [] + # math_libs is needed by floatsleep() + time_libs = list(math_libs) lib = sysconfig.get_config_var('TIMEMODULE_LIB') if lib: time_libs.append(lib) @@ -634,8 +635,10 @@ else: missing.append('spwd') - # select(2); not on ancient System V - exts.append( Extension('select', ['selectmodule.c']) ) + # select(2): not on ancient System V + # selectmodule.c calls the ceil(3) math function + exts.append( Extension('select', ['selectmodule.c'], + libraries=math_libs) ) # Fred Drake's interface to the Python parser exts.append( Extension('parser', ['parsermodule.c']) )