nixpkgs/pkgs/stdenv/generic
Andreas Rammhold 83f0bccc89 stdenv: add -frandom-seed to NIX_CFLAGS_COMPILE for reproducibility
This adds -frandom-seed to each compiler invocation in stdenv. The
object here is to make the compierl invocations produce the same output
every time they are called (for the same derivation). When the
-frandom-seed option is not set the compiler will use a combination of
random numbers (in GCC's case from /dev/urandom) and the durrent time to
produce a "random" input per file. This can (among other things) lead to
different ordering of symbols in the produced object files.

For reason of reproducibility we prefer having the same derivation
produce the exact same outputs. This is not a silver bullet but one way
to tame the compiler.
2020-11-01 19:40:12 +01:00
..
builder.sh
check-meta.nix stdenv/check-meta: alignment/width 2020-06-11 12:35:11 +10:00
default-builder.sh
default.nix stdenv: add -frandom-seed to NIX_CFLAGS_COMPILE for reproducibility 2020-11-01 19:40:12 +01:00
make-derivation.nix Merge pull request #76794 from dudebout/document-nix-env-multiple-output-install-bug 2020-09-05 15:40:26 +02:00
setup.sh stdenv: set SOURCE_DATE_EPOCH to a value python supports 2020-06-08 11:54:46 +01:00