summaryrefslogtreecommitdiff
path: root/libcurl.pc.in
diff options
context:
space:
mode:
authorCristian Morales Vega <cristian@samknows.com>2020-10-11 23:46:53 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-10-15 16:04:21 +0200
commit3862c37b6373a55ca704171d45ba5ee91dec2c9f (patch)
treed3c498a5d9aeb2d53e079fd3b075b533ae759ddc /libcurl.pc.in
parent88bf689f94bc5717f1826192fbe2bea252804bcb (diff)
downloadcurl-3862c37b6373a55ca704171d45ba5ee91dec2c9f.tar.gz
libcurl.pc: make it relocatable
It supposes when people specify the libdir/includedir they do it to change where under prefix/exec_prefix it should be, not to make it independent of prefix/exec_prefix. Closes #6061
Diffstat (limited to 'libcurl.pc.in')
-rw-r--r--libcurl.pc.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/libcurl.pc.in b/libcurl.pc.in
index fd1ce2204..78e31573a 100644
--- a/libcurl.pc.in
+++ b/libcurl.pc.in
@@ -23,10 +23,10 @@
# This should most probably benefit from getting a "Requires:" field added
# dynamically by configure.
#
-prefix=@prefix@
-exec_prefix=@exec_prefix@
-libdir=@libdir@
-includedir=@includedir@
+prefix=${pcfiledir}/@pkgconf_to_prefix@
+exec_prefix=${pcfiledir}/@pkgconf_to_exec_prefix@
+libdir=${exec_prefix}/@exec_prefix_to_libdir@
+includedir=${prefix}/@prefix_to_includedir@
supported_protocols="@SUPPORT_PROTOCOLS@"
supported_features="@SUPPORT_FEATURES@"