From d7d6fe44d690977e7a91b459c15c0d4e8bc09dce Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 8 Oct 2021 07:13:59 +0100 Subject: [PATCH] libstore-tests: add libutil dependency (fix static link failure) In https://github.com/NixOS/nix/pull/5350 we noticed link failures pkgsStatic.nixUnstable. Adding explicit dependency on libutil fixes libstore-tests linking. --- src/libstore/tests/local.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/tests/local.mk b/src/libstore/tests/local.mk index 6ae9a0285..f74295d97 100644 --- a/src/libstore/tests/local.mk +++ b/src/libstore/tests/local.mk @@ -10,6 +10,6 @@ libstore-tests_SOURCES := $(wildcard $(d)/*.cc) libstore-tests_CXXFLAGS += -I src/libstore -I src/libutil -libstore-tests_LIBS = libstore +libstore-tests_LIBS = libstore libutil libstore-tests_LDFLAGS := $(GTEST_LIBS)