bintools-wrapper: Set ZERO_AR_DATE and re-enable LC_UUID on Darwin

The LC_UUID is a hash over the output file contents.
This commit is contained in:
Zhaofeng Li 2022-08-25 18:58:30 -06:00
parent 766839d4c3
commit 06edf25685

View File

@ -309,10 +309,10 @@ stdenv.mkDerivation {
''
###
### Remove LC_UUID
### Remove certain timestamps from final binaries
###
+ optionalString (stdenv.targetPlatform.isDarwin && !(bintools.isGNU or false)) ''
echo "-no_uuid" >> $out/nix-support/libc-ldflags-before
echo "export ZERO_AR_DATE=1" >> $out/nix-support/setup-hook
''
+ ''