[issue25229] distutils doesn't add "-Wl, " prefix to "-R" on Linux if the C compiler isn't named 'gcc'

François Bissey report at bugs.python.org
Wed Apr 5 18:09:39 EDT 2017


François Bissey added the comment:

I am seeing this with clang on linux. It breaks the building pyzmq. I'll concur with Calvin that using just "-R" is wrong in the first place. Some compiler may pass it directly to the linker. But even in the linker, interpreting "-R" as a rpath if the argument is a directory, is a legacy behavior. "-R" is supposed to be used to add remarks (see ld's man page).
On linux it should just be "-Wl,-rpath" and it should work with all compilers.

----------
nosy: +fbissey

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25229>
_______________________________________


More information about the Python-bugs-list mailing list