]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fix partial lib test
authorYann Collet <yann.collet.73@gmail.com>
Fri, 23 Oct 2020 17:27:12 +0000 (10:27 -0700)
committerYann Collet <yann.collet.73@gmail.com>
Fri, 23 Oct 2020 17:27:12 +0000 (10:27 -0700)
lib/Makefile
tests/libzstd_partial_builds.sh

index fc9d6a6ceb86247a3da472d78b8154fbe227e6fb..bc45f9b0da2032e60ee9e79a1bfd0c81690e967e 100644 (file)
@@ -226,7 +226,7 @@ ifeq ($(BUILD_DIR),0)
 .PHONY: libzstd.a  # not the actual recipe
 libzstd.a:
        $(MAKE) --no-print-directory $@ \
-        BUILD_DIR=obj/conf_$(shell echo $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) | $(HASH) | head -c 16) \
+        BUILD_DIR=obj/conf_$(shell echo $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(ZSTD_FILES) | $(HASH) | head -c 16) \
         CPPFLAGS="$(CPPFLAGS)"
 
 else
@@ -266,7 +266,7 @@ ifeq ($(BUILD_DIR),0)
 .PHONY: $(LIBZSTD)  # not the actual recipe
 $(LIBZSTD):
        $(MAKE) --no-print-directory $@ \
-        BUILD_DIR=obj/conf_$(shell echo $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) | $(HASH) | head -c 16) \
+        BUILD_DIR=obj/conf_$(shell echo $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(ZSTD_FILES) | $(HASH) | head -c 16) \
         CPPFLAGS="$(CPPFLAGS)" \
         CFLAGS="$(CFLAGS)" \
         LDFLAGS="$(LDFLAGS)"
index b1c1e3b1a7e3a8dc87b733a1029bca868fb4d8e8..bee2dbda5264b739937a18f6603bef77e5b20a50 100755 (executable)
@@ -22,7 +22,6 @@ mustBeAbsent() {
 }
 
 # default compilation : all features enabled
-make clean > /dev/null
 $ECHO "testing default library compilation"
 CFLAGS= make -C $DIR/../lib libzstd.a > $INTOVOID
 nm $DIR/../lib/libzstd.a | $GREP "\.o" > tmplog