Skip to content

Commit

Permalink
Use CMake variables for paths in pkg-config files (#31671)
Browse files Browse the repository at this point in the history
Use @gRPC_INSTALL_LIBDIR@ for libdir; this fixes an incorrect
-L/usr/lib on multilib Linux systems where that is the 32-bit library
path and the correct path is /usr/lib64.

Use @gRPC_INSTALL_INCLUDEDIR@ for consistency.
  • Loading branch information
musicinmybrain committed Jan 17, 2023
1 parent baedc45 commit c641b82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/pkg-config-template.pc.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
prefix=@CMAKE_INSTALL_PREFIX@
exec_prefix=${prefix}
includedir=${prefix}/include
libdir=${exec_prefix}/lib
includedir=${prefix}/@gRPC_INSTALL_INCLUDEDIR@
libdir=${exec_prefix}/@gRPC_INSTALL_LIBDIR@

Name: @PC_NAME@
Description: @PC_DESCRIPTION@
Expand Down

0 comments on commit c641b82

Please sign in to comment.