pkgconfig: Define OPJ_STATIC for static linking with pkgconf

allows for the usage of $(pkgconf --static --cflags libopenjp2) to produce
the proper CFLAGS for static linking. Relies on pkgconf rather than pkg-config
This commit is contained in:
Biswapriyo Nath 2022-05-15 18:11:45 +05:30
parent 46b42b616d
commit 17d1bc7f1a
2 changed files with 2 additions and 0 deletions

View File

@ -12,3 +12,4 @@ Version: @OPENJPEG_VERSION@
Libs: -L${libdir} -lopenjp2
Libs.private: -lm
Cflags: -I${includedir}
Cflags.private: -DOPJ_STATIC

View File

@ -13,3 +13,4 @@ Requires: libopenjp2
Libs: -L${libdir} -lopenjpip
Libs.private: -lm -lcurl -lfcgi -lpthread
Cflags: -I${includedir}
Cflags.private: -DOPJ_STATIC