pkgconfig: Define OPJ_STATIC for static linking with pkgconf 1421/head
authorBiswapriyo Nath <nathbappai@gmail.com>
Sun, 15 May 2022 12:41:45 +0000 (18:11 +0530)
committerBiswapriyo Nath <nathbappai@gmail.com>
Sun, 15 May 2022 12:41:50 +0000 (18:11 +0530)
allows for the usage of $(pkgconf --static --cflags libopenjp2) to produce
the proper CFLAGS for static linking. Relies on pkgconf rather than pkg-config

src/lib/openjp2/libopenjp2.pc.cmake.in
src/lib/openjpip/libopenjpip.pc.cmake.in

index 62159b00a4b1bb397d6597fee14a1651e2d656bf..00fdacd12eed7ac97184ffdaf2327d7315c0de4a 100644 (file)
@@ -12,3 +12,4 @@ Version: @OPENJPEG_VERSION@
 Libs: -L${libdir} -lopenjp2
 Libs.private: -lm
 Cflags: -I${includedir}
+Cflags.private: -DOPJ_STATIC
index 7c3f29af2528e115c85891f6c06d4290c80d543f..183b68ff22fd94e656d9599748b670ac843e929d 100644 (file)
@@ -13,3 +13,4 @@ Requires: libopenjp2
 Libs: -L${libdir} -lopenjpip
 Libs.private: -lm -lcurl -lfcgi -lpthread
 Cflags: -I${includedir}
+Cflags.private: -DOPJ_STATIC