summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2017-08-13 14:27:12 +1000
committerTony Theodore <tonyt@logyst.com>2017-08-13 14:27:16 +1000
commit567dac581e6a57ce5f13b19f18b5b66dc99fc08f (patch)
tree92fcb948e9553fcec5bd94909b571e5dd98def45 /build
parentf77a9d9d4162c4a793fcf88a79887568cde26db0 (diff)
downloadlibarchive-567dac581e6a57ce5f13b19f18b5b66dc99fc08f.tar.gz
libarchive.pc.in: add Cflags.private for static linking
`pkgconf` supports a `Cflags.private` that simplifies static linking for windows (mingw cross) builds. Users of `pkg-config` will be unaffected by this as existing build scripts will already set the `-DLIBARCHIVE_STATIC` as required.
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 95d71595..4b631e63 100644
--- a/build/pkgconfig/libarchive.pc.in
+++ b/build/pkgconfig/libarchive.pc.in
@@ -7,5 +7,6 @@ Name: libarchive
Description: library that can create and read several streaming archive formats
Version: @VERSION@
Cflags: -I${includedir}
+Cflags.private: -DLIBARCHIVE_STATIC
Libs: -L${libdir} -larchive
Libs.private: @LIBS@