Commit 520c2a3
committed
Pass runtime library directories to nvcc in a form it accepts
distutils renders runtime_library_dirs as -Wl,--rpath=... inside the link
call, so the flags never pass through forward_host_flags and reached nvcc
bare, which rejects them.
The device link drops them: it produces a relocatable device object, where
a runtime search path has no meaning. The shared link passes the same
directories as -Xlinker --rpath=..., preserving the rpath rather than
discarding it.1 parent 2f1f89a commit 520c2a3
1 file changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
142 | 151 | | |
143 | 152 | | |
144 | 153 | | |
145 | 154 | | |
146 | 155 | | |
147 | | - | |
| 156 | + | |
148 | 157 | | |
149 | 158 | | |
150 | 159 | | |
| |||
153 | 162 | | |
154 | 163 | | |
155 | 164 | | |
156 | | - | |
157 | | - | |
| 165 | + | |
| 166 | + | |
158 | 167 | | |
159 | 168 | | |
160 | 169 | | |
| |||
0 commit comments