From: Tony Theodore Date: Sun, 13 Aug 2017 04:27:12 +0000 (+1000) Subject: libarchive.pc.in: add Cflags.private for static linking X-Git-Tag: v3.3.3~45^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=567dac581e6a57ce5f13b19f18b5b66dc99fc08f;p=thirdparty%2Flibarchive.git 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. --- diff --git a/build/pkgconfig/libarchive.pc.in b/build/pkgconfig/libarchive.pc.in index 95d715951..4b631e635 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@