summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-02-22 13:01:54 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-02-22 13:01:54 -0800
commitb37ac72744d42a27d22741b5b1220c8a597b655b (patch)
tree1a6cc02ace202ea803a795bc2051d3c3004393e8
parente40356cf6bcbea6966d5a2c98ca767e07b3e7aa8 (diff)
configure: Add COMPRESS_FLAGS to pass options to compression command
By default, set to -n for gzip to stop recording timestamps and improve build reproducibility. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--Makefile.am2
-rw-r--r--configure.ac2
-rw-r--r--large/Makefile.am2
3 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 2c9f5b6..d6c961a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -55,7 +55,7 @@ endif
SUFFIXES = .enc .enc.gz
.enc.enc.gz:
- $(AM_V_GEN)$(GZIP) -c < $< > $@
+ $(AM_V_GEN)$(GZIP) $(COMPRESS_FLAGS) -c < $< > $@
encodings.dir: $(DATA_FILES)
$(AM_V_GEN)$(MKFONTSCALE) -b -s -l -n -r -p $(encodingsdir) -e . -e large .
diff --git a/configure.ac b/configure.ac
index a51b8ca..c9e40f4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -42,6 +42,8 @@ if test x$GZIP_SMALL = xyes -o x$GZIP_LARGE = xyes ; then
if [[ -z $GZIP ]]; then
AC_MSG_ERROR([gzip is needed to compress font encodings])
fi
+ COMPRESS_FLAGS="${COMPRESS_FLAGS--n}"
+ AC_SUBST([COMPRESS_FLAGS])
fi
XORG_FONTSUBDIR([ENCODINGSDIR], [encodingsdir], [encodings])
diff --git a/large/Makefile.am b/large/Makefile.am
index 32e03bc..cc5410e 100644
--- a/large/Makefile.am
+++ b/large/Makefile.am
@@ -34,7 +34,7 @@ endif
SUFFIXES = .enc .enc.gz
.enc.enc.gz:
- $(AM_V_GEN)$(GZIP) -c < $< > $@
+ $(AM_V_GEN)$(GZIP) $(COMPRESS_FLAGS) -c < $< > $@
encodings.dir: $(DATA_FILES)
$(AM_V_GEN)$(MKFONTSCALE) -b -s -l -n -r -p $(encodingsdir) -e . .