From: Dmitry V. Levin Date: Thu, 27 Dec 2018 12:42:44 +0000 (+0000) Subject: contrib/pzstd/Makefile: fix build of tests X-Git-Tag: v1.4.0^2~56^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b2210411a02a8ec537ee64d71ece7b9a48d1149;p=thirdparty%2Fzstd.git contrib/pzstd/Makefile: fix build of tests Apparently, Options.o cannot be linked in without $(PROGDIR)/util.o --- diff --git a/contrib/pzstd/Makefile b/contrib/pzstd/Makefile index 1d434dbcd..8d2b1932e 100644 --- a/contrib/pzstd/Makefile +++ b/contrib/pzstd/Makefile @@ -190,13 +190,15 @@ $(ZSTDDIR)/libzstd.a: $(ZSTD_FILES) CFLAGS="$(ALL_CFLAGS)" LDFLAGS="$(ALL_LDFLAGS)" $(MAKE) -C $(ZSTDDIR) libzstd.a # Rules to build the tests -test/RoundTripTest$(EXT): test/RoundTripTest.o $(PROGDIR)/datagen.o Options.o \ +test/RoundTripTest$(EXT): test/RoundTripTest.o $(PROGDIR)/datagen.o \ + $(PROGDIR)/util.o Options.o \ Pzstd.o SkippableFrame.o $(ZSTDDIR)/libzstd.a $(LD_COMMAND) test/%Test$(EXT): PZSTD_LDFLAGS += $(GTEST_LIB) test/%Test$(EXT): LIBS += -lgtest -lgtest_main -test/%Test$(EXT): test/%Test.o $(PROGDIR)/datagen.o Options.o Pzstd.o \ +test/%Test$(EXT): test/%Test.o $(PROGDIR)/datagen.o \ + $(PROGDIR)/util.o Options.o Pzstd.o \ SkippableFrame.o $(ZSTDDIR)/libzstd.a $(LD_COMMAND)