Commit 8e938d0
committed
Make sure to use custom libraries when specified
Certain installations of Python will insert
sysconfig 'LIBDIR' path before the `extra_link_args`. This means
that if `extra_link_args` specifies a custom krb5 path, the linker
will still use the system krb5, if it's in 'LIBDIR' (e.g. '/usr/lib').
This commit makes setup.py search the link args for '-L' entries,
and insert them in `library_dirs` to that they get inserted *before*
'LIBDIR'.1 parent 0bf60d1 commit 8e938d0
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
| |||
109 | 114 | | |
110 | 115 | | |
111 | 116 | | |
| 117 | + | |
112 | 118 | | |
113 | 119 | | |
114 | 120 | | |
| |||
127 | 133 | | |
128 | 134 | | |
129 | 135 | | |
| 136 | + | |
130 | 137 | | |
131 | 138 | | |
132 | 139 | | |
133 | 140 | | |
134 | 141 | | |
| 142 | + | |
135 | 143 | | |
136 | 144 | | |
137 | 145 | | |
| |||
146 | 154 | | |
147 | 155 | | |
148 | 156 | | |
| 157 | + | |
149 | 158 | | |
150 | 159 | | |
151 | 160 | | |
| |||
0 commit comments