--- Lib/distutils/unixccompiler.py.orig 2018-04-29 22:47:33 UTC +++ Lib/distutils/unixccompiler.py @@ -232,6 +232,8 @@ class UnixCCompiler(CCompiler): return "-L" + dir elif sys.platform[:7] == "freebsd": return "-Wl,-rpath=" + dir + elif sys.platform[:8] == "bsdsunix": + return "-Wl,-rpath=" + dir elif sys.platform[:5] == "hp-ux": if self._is_gcc(compiler): return ["-Wl,+s", "-L" + dir]