Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Lib/distutils/unixccompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ def library_dir_option(self, dir):
return "-L" + dir

def _is_gcc(self, compiler_name):
return "gcc" in compiler_name or "g++" in compiler_name
# clang uses same syntax for rpath as gcc
return any(name in compiler_name for name in ("gcc", "g++", "clang"))

def runtime_library_dir_option(self, dir):
# XXX Hackish, at the very least. See Python bug #445902:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Fix clang rpath issue in :mod:`distutils`. The UnixCCompiler now uses
correct clang option to add a runtime library directory (rpath) to a shared
library.