patch zlib for proper .pc file creation

This commit is contained in:
alexey.lysiuk 2020-12-06 12:57:42 +02:00
parent e6ee857f8b
commit eecc89a899

25
patch/zlib.patch Normal file
View file

@ -0,0 +1,25 @@
--- a/configure
+++ b/configure
@@ -906,7 +906,6 @@
/^ARFLAGS *=/s#=.*#=$ARFLAGS#
/^RANLIB *=/s#=.*#=$RANLIB#
/^EXE *=/s#=.*#=$EXE#
-/^prefix *=/s#=.*#=$prefix#
/^exec_prefix *=/s#=.*#=$exec_prefix#
/^libdir *=/s#=.*#=$libdir#
/^sharedlibdir *=/s#=.*#=$sharedlibdir#
--- a/zlib.pc.in
+++ b/zlib.pc.in
@@ -1,4 +1,4 @@
-prefix=@prefix@
+prefix=
exec_prefix=@exec_prefix@
libdir=@libdir@
sharedlibdir=@sharedlibdir@
@@ -9,5 +9,5 @@
Version: @VERSION@
Requires:
-Libs: -L${libdir} -L${sharedlibdir} -lz
+Libs: ${libdir}/libz.a
Cflags: -I${includedir}