Commit 8fa7eda
Set LD_LIBRARY_PATH on Linux for NIF shared library resolution
When using custom_erts with a glibc-linked ERTS (e.g. from
builds.hex.pm), NIF .so files may depend on system shared libraries
like libgcc_s.so.1. The BEAM process doesn't search standard system
library paths by default, causing dlopen to fail.
Add common system library paths to LD_LIBRARY_PATH so NIF shared
objects can find their dependencies.1 parent e85ec0c commit 8fa7eda
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
121 | 131 | | |
122 | 132 | | |
123 | 133 | | |
0 commit comments