Regression from the source code rearrangement in
4aa357782e48.
Also added a distcheck that verifies that “./configure
--with-bundled-zlib” works.
Closes #229.
ccache_objs = $(ccache_sources:.c=.o)
zlib_sources = \
- zlib/adler32.c zlib/crc32.c zlib/deflate.c zlib/gzclose.c zlib/gzlib.c \
- zlib/gzread.c zlib/gzwrite.c zlib/inffast.c zlib/inflate.c \
- zlib/inftrees.c zlib/trees.c zlib/zutil.c
+ src/zlib/adler32.c \
+ src/zlib/crc32.c \
+ src/zlib/deflate.c \
+ src/zlib/gzclose.c \
+ src/zlib/gzlib.c \
+ src/zlib/gzread.c \
+ src/zlib/gzwrite.c \
+ src/zlib/inffast.c \
+ src/zlib/inflate.c \
+ src/zlib/inftrees.c \
+ src/zlib/trees.c \
+ src/zlib/zutil.c
+
zlib_objs = $(zlib_sources:.c=.o)
test_suites = @test_suites@
all_sources = $(ccache_sources) $(test_sources)
all_objs = $(ccache_objs) $(test_objs) $(zlib_objs)
-files_to_clean = $(all_objs) ccache$(EXEEXT) unittest/run$(EXEEXT) *~ testdir.*
+files_to_clean = \
+ $(all_objs) \
+ ccache$(EXEEXT) \
+ src/*~ \
+ src/zlib/libz.a \
+ testdir.* \
+ unittest/run$(EXEEXT) \
+ *~ \
+
files_to_distclean = Makefile config.h config.log config.status
.PHONY: all
$(zlib_objs): CPPFLAGS += -include config.h
-zlib/libz.a: $(zlib_objs)
+src/zlib/libz.a: $(zlib_objs)
$(AR) cr $@ $(zlib_objs)
$(RANLIB) $@
if test x${use_bundled_zlib} = xyes; then
CPPFLAGS="$CPPFLAGS -I\$(srcdir)/src/zlib"
- extra_libs="zlib/libz.a"
- mkdir -p zlib
+ extra_libs="src/zlib/libz.a"
+ mkdir -p src/zlib
else
LIBS="$LIBS -lz"
fi
distcheck: $(firstword $(dist_archives))
tmpdir=$$(mktemp -d /tmp/tmp-ccache-distcheck.XXXXXX) && \
(cd $$tmpdir && \
- tar xjf $(CURDIR)/$< && \
+ tar xf $(CURDIR)/$< && \
mkdir -p $(dist_dir)/build && \
cd $(dist_dir)/build && \
../configure --prefix=$$tmpdir/root && \
$(MAKE) installcheck) && \
rm -rf $$tmpdir
+ tmpdir=$$(mktemp -d /tmp/tmp-ccache-distcheck.XXXXXX) && \
+ (cd $$tmpdir && \
+ tar xf $(CURDIR)/$< && \
+ mkdir -p $(dist_dir)/build && \
+ cd $(dist_dir)/build && \
+ ../configure --prefix=$$tmpdir/root --with-bundled-zlib && \
+ $(MAKE) install && \
+ $(MAKE) installcheck) && \
+ rm -rf $$tmpdir
+
.PHONY: docs
docs: $(generated_docs)
Previously, ccache would not pick up changes to such precompiled headers,
risking false positive cache hits.
+- Fixed build failure when using the bundled zlib sources.
+
ccache 3.4.1
------------