Author: Manuel Jacob <[email protected]>
Branch:
Changeset: r76423:a5c8f6daa2f8
Date: 2015-03-17 01:51 +0100
http://bitbucket.org/pypy/pypy/changeset/a5c8f6daa2f8/
Log: Pass -rpath-link to the linker for every additional library
directory.
This is needed for additional library directories to work with
--shared. A PyPy translation only passes additional libary
directories to the linker if cross-building for ARM. I verified
that this is also needed if the library_dirs argument is passed to
ExternalCompilationInfo.
diff --git a/rpython/translator/platform/posix.py
b/rpython/translator/platform/posix.py
--- a/rpython/translator/platform/posix.py
+++ b/rpython/translator/platform/posix.py
@@ -167,7 +167,8 @@
('CC', self.cc),
('CC_LINK', eci.use_cpp_linker and 'g++' or '$(CC)'),
('LINKFILES', eci.link_files),
- ('RPATH_FLAGS', self.rpath_flags),
+ ('RPATH_FLAGS', self.rpath_flags + ['-Wl,-rpath-link=\'%s\'' % ldir
+ for ldir in rel_libdirs]),
]
for args in definitions:
m.definition(*args)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit