summaryrefslogtreecommitdiff
path: root/lang/python26/patches/patch-Lib_distutils_unixccompiler.py
blob: 5fdab68fce037f6b22b48b2c36388b7e71a01c8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-Lib_distutils_unixccompiler.py,v 1.1 2013/09/10 14:22:30 joerg Exp $

--- Lib/distutils/unixccompiler.py.orig	2012-04-10 15:32:04.000000000 +0000
+++ Lib/distutils/unixccompiler.py
@@ -292,10 +292,8 @@ class UnixCCompiler(CCompiler):
             return ["+s", "-L" + dir]
         elif sys.platform[:7] == "irix646" or sys.platform[:6] == "osf1V5":
             return ["-rpath", dir]
-        elif self._is_gcc(compiler):
-            return "-Wl,-R" + dir
         else:
-            return "-R" + dir
+            return "-Wl,-R" + dir
 
     def library_option(self, lib):
         return "-l" + lib