From 91db4e08d1c3b46cc6e25ab342990648f861abce Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Thu, 28 Dec 2023 19:30:13 +0530 Subject: [PATCH] pkgconf: add UAVIF_DLL for static linking with pkgconf (#1904) allows for the usage of `pkgconf --static --cflags libavif' to produce the proper CFLAGS for static linking. Relies on pkgconf rather than pkg-config. --- libavif.pc.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/libavif.pc.cmake b/libavif.pc.cmake index c091443910..ac58c240cc 100644 --- a/libavif.pc.cmake +++ b/libavif.pc.cmake @@ -8,3 +8,4 @@ Description: Library for encoding and decoding .avif files Version: @PROJECT_VERSION@ Libs: -L${libdir} -lavif Cflags: -I${includedir}@AVIF_PKG_CONFIG_EXTRA_CFLAGS@ +Cflags.private: -UAVIF_DLL