]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
libarchive.pc.in: add Cflags.private for static linking 934/head
authorTony Theodore <tonyt@logyst.com>
Sun, 13 Aug 2017 04:27:12 +0000 (14:27 +1000)
committerTony Theodore <tonyt@logyst.com>
Sun, 13 Aug 2017 04:27:16 +0000 (14:27 +1000)
`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.

build/pkgconfig/libarchive.pc.in

index 95d715951774afbc2686e1210cdebf7a0450a2cb..4b631e635ccf1ecbf5712b62e8cbbf0d13591a07 100644 (file)
@@ -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@