From b664e418a10d79f5ef207db69e1b9c0cf29ddde9 Mon Sep 17 00:00:00 2001 From: Paul Wankadia Date: Fri, 17 May 2024 18:22:29 +0000 Subject: [PATCH] Ask `pkg-config` about `gtest_main` as well. vcpkg installs `libgtest_main.a` into a `manual-link` subdirectory for some reason... Change-Id: I0842281094dae10ee82e72c22c165d3a8141cbe9 Reviewed-on: https://code-review.googlesource.com/c/re2/+/63090 Reviewed-by: Alex Chernyakhovsky Reviewed-by: Paul Wankadia --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)