diff --git a/doc/Makefile b/doc/Makefile
index e88ddf1df0dd35f25185304b919cf57c8cf8b0eb..5461104e71ae258d7b7bb499f9fbce889888afd2 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -233,7 +233,7 @@ $(MANPAGES_WEBDIR_LINUX) $(MANPAGES_WEBDIR_WINDOWS):
 	man ./$< > $@
 
 %.gz: %
-	gzip -c ./$* > $@
+	gzip -nc ./$* > $@
 
 %.html: %
 	groff -mandoc -Thtml ./$< > $@
diff --git a/src/tools/Makefile.inc b/src/tools/Makefile.inc
index e5273c0880596f027fc60e398c78d5ea97004d5f..cdc4fa4f5268f32540b5b34cb6d21e833eb92cb0 100644
--- a/src/tools/Makefile.inc
+++ b/src/tools/Makefile.inc
@@ -1,4 +1,4 @@
-# Copyright 2014-2019, Intel Corporation
+# Copyright 2014-2020, Intel Corporation
 #
 # Redistribution and use in source and binary forms, with or without
 # modification, are permitted provided that the following conditions
@@ -283,7 +283,7 @@ endif
 endif
 
 %.gz: %
-	gzip -c ./$< > $@
+	gzip -nc ./$< > $@
 
 %.txt: %
 	man ./$< > $@