summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorBiswapriyo Nath <nathbappai@gmail.com>2022-04-13 09:48:44 +0530
committerBiswapriyo Nath <nathbappai@gmail.com>2022-04-13 09:48:44 +0530
commita83f3d327aefe8d628230f326621b014d82f55b4 (patch)
treeedc6ff6433c5c4e6c487c5dc30c9b4fea495dafb /build
parent042956b1b828d57f142f36ae8f27519c7700bb71 (diff)
downloadlibarchive-a83f3d327aefe8d628230f326621b014d82f55b4.tar.gz
autotools: Fix static linking when openssl is enabled in windows
This adds Requires.private field in pkgconfig file. Using that field, pkgconfig pulls all the private cflags or libs while static linking. OpenSSL static libraries require some windows system libraies. Otherwise static liking fails with libarchive.
Diffstat (limited to 'build')
-rw-r--r--build/pkgconfig/libarchive.pc.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/build/pkgconfig/libarchive.pc.in b/build/pkgconfig/libarchive.pc.in
index 4b631e63..1f51e77f 100644
--- a/build/pkgconfig/libarchive.pc.in
+++ b/build/pkgconfig/libarchive.pc.in
@@ -10,3 +10,4 @@ Cflags: -I${includedir}
Cflags.private: -DLIBARCHIVE_STATIC
Libs: -L${libdir} -larchive
Libs.private: @LIBS@
+Requires.private: @LIBSREQUIRED@