From 1d48579589dcd505eedc6e25ce988fa77a4e5b3a Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 18 Jan 2018 14:38:55 +0100 Subject: [PATCH] distutils UnixCCompiler: remove FreeBSD special case bpo-32593: There is no need to have a special case for FreeBSD. FreeBSD can share the same code than Linux. --- Lib/distutils/unixccompiler.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Lib/distutils/unixccompiler.py b/Lib/distutils/unixccompiler.py index ab4d4de1566198..c3156963522bbc 100644 --- a/Lib/distutils/unixccompiler.py +++ b/Lib/distutils/unixccompiler.py @@ -227,8 +227,6 @@ def runtime_library_dir_option(self, dir): if sys.platform[:6] == "darwin": # MacOSX's linker doesn't understand the -R flag at all return "-L" + dir - elif sys.platform[:7] == "freebsd": - return "-Wl,-rpath=" + dir elif sys.platform[:5] == "hp-ux": if self._is_gcc(compiler): return ["-Wl,+s", "-L" + dir]