mirror of
https://github.com/vhaudiquet/ecrou.git
synced 2026-11-12 22:22:44 +00:00
feat(cli): re-exec with DYLD fallback paths set
The engine's dlopen of libkrunfw and mke2fs's of libarchive use bare sonames, and dyld reads DYLD_FALLBACK_LIBRARY_PATH once, at process startup — a setenv afterwards is invisible to it. When the variable is unset and the brew kegs exist, the CLI sets it and execv's itself: exec restarts dyld, which reads the variable fresh. Library consumers set the variable before their process starts instead (SPEC.md).
This commit is contained in:
1 parent
92ff76a1b6
commit
f963578152
3 files changed
+64
No files matched your search
@@ -12,6 +12,7 @@ name = "ecrou"
|
||||
path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
libc = "0.2"
|
||||
ecrou = { path = "../ecrou" }
|
||||
|
||||
# CLI parsing
|
||||
|
||||
Reference in new issue
Block a user