diff --git a/Makefile b/Makefile index 65b52f6ca..5d6d6c072 100644 --- a/Makefile +++ b/Makefile @@ -31,8 +31,8 @@ LDABSL=$(shell $(PKG_CONFIG) $(ABSL_DEPS) --libs | sed -e 's/-Wl / /g') # Build against GoogleTest and Benchmark for... testing and benchmarking. # Capture only the `-L` flags for now; we will pass the `-l` flags later. -CCGTEST=$(shell $(PKG_CONFIG) gtest --cflags) -LDGTEST=$(shell $(PKG_CONFIG) gtest --libs-only-L) +CCGTEST=$(shell $(PKG_CONFIG) gtest gtest_main --cflags) +LDGTEST=$(shell $(PKG_CONFIG) gtest gtest_main --libs-only-L) CCBENCHMARK=$(shell $(PKG_CONFIG) benchmark --cflags) LDBENCHMARK=$(shell $(PKG_CONFIG) benchmark --libs-only-L)