From c494fb788e5139c241935d0e3b8a7b429dc27679 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 5 Apr 2020 20:15:04 -0700 Subject: gdlib.pc: use prefixes for pkgconfig file This allows the pkgconfig file to be properly used in cross compile scenarios by overriding the prefix. Otherwise, it points to host libraries. Signed-off-by: Rosen Penev --- config/gdlib.pc.cmake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/gdlib.pc.cmake b/config/gdlib.pc.cmake index fb82888..d1a0dda 100644 --- a/config/gdlib.pc.cmake +++ b/config/gdlib.pc.cmake @@ -1,5 +1,7 @@ -libdir=@CMAKE_INSTALL_FULL_LIBDIR@ -includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=@CMAKE_INSTALL_PREFIX@ +libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ +includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ Name: gd Description: GD graphics library -- cgit v1.2.1