diff options
author | Arnout Engelen <arnout@bzzt.net> | 2023-04-04 17:01:32 +0200 |
---|---|---|
committer | Arnout Engelen <arnout@bzzt.net> | 2023-04-04 18:52:39 +0200 |
commit | 112150ec70f1846a88301ef085dbb933ee8968c5 (patch) | |
tree | 6d1227cf98692d4bfd6f257d386d12a797fd3c00 /pkgs/build-support | |
parent | 988cc958c57ce4350ec248d2d53087777f9e1949 (diff) | |
download | nixpkgs-112150ec70f1846a88301ef085dbb933ee8968c5.tar nixpkgs-112150ec70f1846a88301ef085dbb933ee8968c5.tar.gz nixpkgs-112150ec70f1846a88301ef085dbb933ee8968c5.tar.bz2 nixpkgs-112150ec70f1846a88301ef085dbb933ee8968c5.tar.lz nixpkgs-112150ec70f1846a88301ef085dbb933ee8968c5.tar.xz nixpkgs-112150ec70f1846a88301ef085dbb933ee8968c5.tar.zst nixpkgs-112150ec70f1846a88301ef085dbb933ee8968c5.zip |
setup-hooks/strip.sh: preserve file dates
AFAIK this doesn't have a noticable effect for typical Linux executables, but will avoid setting the timestamp inside the file for Windows executables to the build date.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/setup-hooks/strip.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/setup-hooks/strip.sh b/pkgs/build-support/setup-hooks/strip.sh index f5e3bdced69..849148e9214 100644 --- a/pkgs/build-support/setup-hooks/strip.sh +++ b/pkgs/build-support/setup-hooks/strip.sh @@ -39,8 +39,8 @@ _doStrip() { if [[ "${dontStrip-}" || "${flag-}" ]] || ! type -f "${stripCmd-}" 2>/dev/null 1>&2 then continue; fi - stripDirs "$stripCmd" "$ranlibCmd" "$debugDirList" "${stripDebugFlags[*]:--S}" - stripDirs "$stripCmd" "$ranlibCmd" "$allDirList" "${stripAllFlags[*]:--s}" + stripDirs "$stripCmd" "$ranlibCmd" "$debugDirList" "${stripDebugFlags[*]:--S -p}" + stripDirs "$stripCmd" "$ranlibCmd" "$allDirList" "${stripAllFlags[*]:--s -p}" done } |