aboutsummaryrefslogtreecommitdiffstats
path: root/tools/zlib/patches/900-overridable-pc-exec-prefix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'tools/zlib/patches/900-overridable-pc-exec-prefix.patch')
-rw-r--r--tools/zlib/patches/900-overridable-pc-exec-prefix.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/zlib/patches/900-overridable-pc-exec-prefix.patch b/tools/zlib/patches/900-overridable-pc-exec-prefix.patch
new file mode 100644
index 0000000000..4f1e376c90
--- /dev/null
+++ b/tools/zlib/patches/900-overridable-pc-exec-prefix.patch
@@ -0,0 +1,14 @@
+--- a/zlib.pc.cmakein
++++ b/zlib.pc.cmakein
+@@ -1,8 +1,8 @@
+ prefix=@CMAKE_INSTALL_PREFIX@
+ exec_prefix=@CMAKE_INSTALL_PREFIX@
+-libdir=@INSTALL_LIB_DIR@
+-sharedlibdir=@INSTALL_LIB_DIR@
+-includedir=@INSTALL_INC_DIR@
++libdir=${prefix}/lib
++sharedlibdir=${prefix}/lib
++includedir=${prefix}/include
+
+ Name: zlib
+ Description: zlib compression library