New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stdenv: make -nostdinc work as intended #91974
Conversation
b78a55d
to
d4f4506
Compare
Until this hits master, the following solution also works:
|
@GrahamcOfBorg build stdenv |
Oh this looks great to me; I had tried something similar at one point when adding those new files. Do note when you fix conflicts that we now touch all the flags files so downstream can unconditionally cat them. |
CC @aaronjanse just in case anything special needs to be done for relibc's crt0. |
I don't know enough to understand this PR well, but I've locally verified that these changes don't break relibc 👍 |
Right now we add glibc to search path also -nostdinc was provided, which breaks projects providing their own gcc.
Oh i missed the conflicts were fixed. Let's ship! |
Right now we add glibc to search path also -nostdinc was provided,
which breaks projects providing their own gcc.
Motivation for this change
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)