Commit 03afffa
authored
allow additional search paths (#25)
For certain build systems (e.g. nix, guix, spack) we need to tell
libwhich about non-standard search paths. Currently the only way of
doing so is by setting `LD_LIBRARY_PATH`, which difficult to scope just
to libwhich execution, and as a result can influence the runtime
behavior of other executables.
This patch allows you to set `LIBWHICH_LIBRARY_PATH=x:y:z`, which
libwhich uses to set `LD_LIBRARY_PATH` before it reruns itself, so
`dlopen(...)` can locate libraries in these search paths.1 parent ccec856 commit 03afffa
1 file changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
136 | 137 | | |
137 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
138 | 146 | | |
139 | 147 | | |
140 | 148 | | |
| |||
336 | 344 | | |
337 | 345 | | |
338 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
339 | 360 | | |
340 | 361 | | |
341 | 362 | | |
| |||
0 commit comments