15ce3e7
From beb3d7c392c22517c5a91e2f13558bee379abb2a Mon Sep 17 00:00:00 2001
dce1612
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
dce1612
Date: Wed, 16 Nov 2022 09:00:21 -0500
dce1612
Subject: [PATCH] Use CMake variables for paths in pkg-config files
dce1612
dce1612
Use @gRPC_INSTALL_LIBDIR@ for libdir; this fixes an incorrect
dce1612
-L/usr/lib on multilib Linux systems where that is the 32-bit library
dce1612
path and the correct path is /usr/lib64.
dce1612
dce1612
Use @gRPC_INSTALL_INCLUDEDIR@ for consistency.
dce1612
---
dce1612
 cmake/pkg-config-template.pc.in | 4 ++--
dce1612
 1 file changed, 2 insertions(+), 2 deletions(-)
dce1612
dce1612
diff --git a/cmake/pkg-config-template.pc.in b/cmake/pkg-config-template.pc.in
15ce3e7
index d56154bb3a53..5a56b4f88530 100644
dce1612
--- a/cmake/pkg-config-template.pc.in
dce1612
+++ b/cmake/pkg-config-template.pc.in
dce1612
@@ -1,7 +1,7 @@
dce1612
 prefix=@CMAKE_INSTALL_PREFIX@
dce1612
 exec_prefix=${prefix}
dce1612
-includedir=${prefix}/include
dce1612
-libdir=${exec_prefix}/lib
15ce3e7
+includedir=${prefix}/@gRPC_INSTALL_INCLUDEDIR@
15ce3e7
+libdir=${exec_prefix}/@gRPC_INSTALL_LIBDIR@
dce1612
 
dce1612
 Name: @PC_NAME@
dce1612
 Description: @PC_DESCRIPTION@