aboutsummaryrefslogtreecommitdiffstats
path: root/ffbuild/common.mak
diff options
context:
space:
mode:
authorRob Hall <robxnanocode@outlook.com>2023-09-30 00:25:39 +0100
committerAnton Khirnov <anton@khirnov.net>2023-11-05 11:30:13 +0100
commit1a7a85137e593f5164027da7ce53219829253f65 (patch)
treeaa99b2e94c477588593109a8df2352dfae1ddaa8 /ffbuild/common.mak
parentfd1712b6fb8b7acc04ccaa7c02b9a5c9f233cfb3 (diff)
downloadffmpeg-1a7a85137e593f5164027da7ce53219829253f65.tar.gz
ffbuild: Add gzip -n flag to fix reproducible builds
Without this flag, timestamps were embedded into the final binary if CUDA was enabled. Signed-off-by: Rob Hall <robxnanocode@outlook.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'ffbuild/common.mak')
-rw-r--r--ffbuild/common.mak2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffbuild/common.mak b/ffbuild/common.mak
index f52473453e..ac54ac0681 100644
--- a/ffbuild/common.mak
+++ b/ffbuild/common.mak
@@ -130,7 +130,7 @@ $(BIN2CEXE): ffbuild/bin2c_host.o
ifdef CONFIG_PTX_COMPRESSION
%.ptx.gz: TAG = GZIP
%.ptx.gz: %.ptx
- $(M)gzip -c9 $(patsubst $(SRC_PATH)/%,$(SRC_LINK)/%,$<) >$@
+ $(M)gzip -nc9 $(patsubst $(SRC_PATH)/%,$(SRC_LINK)/%,$<) >$@
%.ptx.c: %.ptx.gz $(BIN2CEXE)
$(BIN2C) $(patsubst $(SRC_PATH)/%,$(SRC_LINK)/%,$<) $@ $(subst .,_,$(basename $(notdir $@)))