fix partial lib test

This commit is contained in:
Yann Collet
2020-10-23 10:27:12 -07:00
parent b5d4728713
commit ffe8d9e428
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -226,7 +226,7 @@ ifeq ($(BUILD_DIR),0)
.PHONY: libzstd.a # not the actual recipe .PHONY: libzstd.a # not the actual recipe
libzstd.a: libzstd.a:
$(MAKE) --no-print-directory $@ \ $(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)" CPPFLAGS="$(CPPFLAGS)"
else else
@@ -266,7 +266,7 @@ ifeq ($(BUILD_DIR),0)
.PHONY: $(LIBZSTD) # not the actual recipe .PHONY: $(LIBZSTD) # not the actual recipe
$(LIBZSTD): $(LIBZSTD):
$(MAKE) --no-print-directory $@ \ $(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)" \ CPPFLAGS="$(CPPFLAGS)" \
CFLAGS="$(CFLAGS)" \ CFLAGS="$(CFLAGS)" \
LDFLAGS="$(LDFLAGS)" LDFLAGS="$(LDFLAGS)"
-1
View File
@@ -22,7 +22,6 @@ mustBeAbsent() {
} }
# default compilation : all features enabled # default compilation : all features enabled
make clean > /dev/null
$ECHO "testing default library compilation" $ECHO "testing default library compilation"
CFLAGS= make -C $DIR/../lib libzstd.a > $INTOVOID CFLAGS= make -C $DIR/../lib libzstd.a > $INTOVOID
nm $DIR/../lib/libzstd.a | $GREP "\.o" > tmplog nm $DIR/../lib/libzstd.a | $GREP "\.o" > tmplog