Permalink
Browse files

link stdc++ in libzmq extension on PyPy on Linux

not sure why
  • Loading branch information...
1 parent 2cd53fe commit 8d89d4c3604944cd95bb260760a25fb0112d6358 @minrk minrk committed Mar 7, 2014
Showing with 12 additions and 2 deletions.
  1. +12 −2 setup.py
View
@@ -513,9 +513,19 @@ def bundle_libzmq_extension(self):
# check if we need to link against Realtime Extensions library
cc = new_compiler(compiler=self.compiler_type)
cc.output_dir = self.build_temp
- if not sys.platform.startswith(('darwin', 'freebsd')) \
- and not cc.has_function('timer_create'):
+ if not sys.platform.startswith(('darwin', 'freebsd')):
+ line()
+ info("checking for timer_create")
+ if not cc.has_function('timer_create'):
+ info("no timer_create, linking librt")
libzmq.libraries.append('rt')
+ else:
+ info("ok")
+
+ if pypy:
+ # seem to need explicit libstdc++ on linux + pypy
+ # not sure why
+ libzmq.libraries.append("stdc++")
# On non-Windows, also bundle libsodium:
self.bundle_libsodium_extension(libzmq)

0 comments on commit 8d89d4c

Please sign in to comment.