Commit e215b3b
build_ncclx: fix libdwarf discovery by creating missing conda symlinks (#2397)
Summary:
Pull Request resolved: #2397
Conda installs libdwarf with a versioned filename (e.g. `libdwarf.so.0.11.0`)
but does not always create the unversioned `libdwarf.so` symlink that
cmake / folly's FindLibDwarf expects. Add `ensure_conda_libdwarf_symlinks()`
which locates the real versioned library, creates the `libdwarf.so` symlink,
and also creates the SONAME symlink read from the ELF header. Call it right
after `conda install` and before building folly so the build reliably finds
libdwarf inside the conda environment.
Reviewed By: function47
Differential Revision: D103062296
fbshipit-source-id: 59864e9785567052336f4316ce725eb8fc1a7a291 parent 0631785 commit e215b3b
1 file changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
6 | 32 | | |
7 | 33 | | |
8 | 34 | | |
| |||
182 | 208 | | |
183 | 209 | | |
184 | 210 | | |
| 211 | + | |
185 | 212 | | |
186 | 213 | | |
187 | 214 | | |
| |||
0 commit comments