From 1a7a85137e593f5164027da7ce53219829253f65 Mon Sep 17 00:00:00 2001 From: Rob Hall Date: Sat, 30 Sep 2023 00:25:39 +0100 Subject: [PATCH] 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 Signed-off-by: Anton Khirnov --- ffbuild/common.mak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 $@)))