diff --git a/setup.py b/setup.py index c1e0fb38d..1f1ec13d3 100644 --- a/setup.py +++ b/setup.py @@ -154,6 +154,10 @@ def run(self): "link-arg=-Wl,-rpath,$ORIGIN/../../..", "-C", "link-arg=-Wl,-rpath," + conda_lib, + # Add the conda lib to the search path for the linker, as libraries like + # libunwind may be installed there. + "-L", + conda_lib, ] if py_lib: flags += ["-C", "link-arg=-Wl,-rpath," + py_lib]