Skip to content

Use sysroot to hide system paths#263

Merged
rossabaker merged 1 commit intomainfrom
sysroot
Mar 6, 2026
Merged

Use sysroot to hide system paths#263
rossabaker merged 1 commit intomainfrom
sysroot

Conversation

@rossabaker
Copy link
Member

Adding a --sysroot argument prevents clang from including host system libraries that may preempt the LD_LIBRARY_PATH. See http4s/http4s#7795 for a full demo.

@rossabaker
Copy link
Member Author

An alternative to this is NIX_ENFORCE_PURITY, but then I had to set NIX_STORE, and then I went down a rabbit hole of other unset variables in various scripts. This is a less obvious way to restore some semblance of purity.

@rossabaker rossabaker merged commit d9fc91c into main Mar 6, 2026
2 checks passed
@rossabaker rossabaker deleted the sysroot branch March 6, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants