mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
782eda9750
The buildroot pkg-config (in staging_dir/host/bin) overrides the prefix and exec_prefix variables in *.pc files, to supply the correct (buildroot) paths for callers. If other variables are not defined relative to prefix and exec_prefix, then the returned values will be incorrect. The default zlib.pc file generated by cmake contains absolute paths. This patches the file to use relative paths (relative to ${prefix} and ${exec_prefix}). Signed-off-by: Jeffery To <jeffery.to@gmail.com>
15 lines
358 B
Diff
15 lines
358 B
Diff
--- 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=${exec_prefix}/lib
|
|
+sharedlibdir=${exec_prefix}/lib
|
|
+includedir=${prefix}/include
|
|
|
|
Name: zlib
|
|
Description: zlib compression library
|