nixpkgs/pkgs/stdenv
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
..
cross Merge pull request #86223 from pikajude/darwin-static-eval 2020-09-30 23:44:18 +02:00
custom stdenv: allow custom stdenv to take crossOverlays 2019-01-07 20:53:10 -06:00
cygwin treewide: Make still dont* Variables are optional in most cases 2019-11-01 14:44:44 -04:00
darwin Recover the complicated situation after my bad merge 2020-10-26 09:01:04 +01:00
freebsd stdenv: implement crossOverlays 2018-12-04 21:06:46 -06:00
generic stdenv: add -frandom-seed to NIX_CFLAGS_COMPILE for reproducibility 2020-11-01 19:40:12 +01:00
linux treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
native stdenv/native: provide patchelf on linux 2020-08-25 17:54:27 -05:00
nix stdenv: implement crossOverlays 2018-12-04 21:06:46 -06:00
adapters.nix pkgsStatic: fix eval on Darwin 2020-04-28 08:41:48 -07:00
booter.nix pkgs/stdenv/booter.nix: Add comment explaining hasCC trickery 2019-12-30 18:09:45 -05:00
common-path.nix
default.nix treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00