Source

pypy-patches / reexport.diff

Full commit
# HG changeset patch
# Parent f20d00165f8821ae5e86de36c02a44607ce513d3
# User Dan Villiom Podlaski Christiansen  <danchr@gmail.com>
Hack to fix translation on Darwin

diff --git a/pypy/translator/platform/posix.py b/pypy/translator/platform/posix.py
--- a/pypy/translator/platform/posix.py
+++ b/pypy/translator/platform/posix.py
@@ -20,7 +20,9 @@ class BasePosix(Platform):
         self.cc = cc
 
     def _libs(self, libraries):
-        return ['-l%s' % lib for lib in libraries]
+        # FIXME: using -reexport-l instead of -l is arguably incorrect, but
+        # allows RFFI to continue pointlessly reexporting imported symbols
+        return ['-reexport‐l%s' % lib for lib in libraries]
 
     def _libdirs(self, library_dirs):
         return ['-L%s' % ldir for ldir in library_dirs]