Skip to content

Commit e525ee1

Browse files
committed
Fix .pc file for use under Windows
Include LIB_PKG_CONFIG_EXTRA_CFLAGS as DEC_PKG_CONFIG_EXTRA_CFLAGS does not exist. On Windows this will expand to "-DDEF_DLL" so that "dllimport" is enabled in "SvtJpegxs.h". Rename "EB_DLL" to "DEF_DLL" in Cflags.private. "EB_DLL" does not exist and by unsetting "DEF_DLL" we make sure that "dllimport" is not used when linking the static lib.
1 parent b6e0a74 commit e525ee1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Lib/pkg-config.pc.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ Description: SVT (Scalable Video Technology) for JPEG XS library
88
Version: @SVT_LIB_VERSION_MAJOR@.@SVT_LIB_VERSION_MINOR@.@SVT_LIB_VERSION_PATCH@
99
Libs: -L${libdir} -lSvtJpegxs
1010
Libs.private: @LIBS_PRIVATE@
11-
Cflags: -I${includedir}/svt-jpegxs@DEC_PKG_CONFIG_EXTRA_CFLAGS@
12-
Cflags.private: -UEB_DLL
11+
Cflags: -I${includedir}/svt-jpegxs @LIB_PKG_CONFIG_EXTRA_CFLAGS@
12+
Cflags.private: -UDEF_DLL

0 commit comments

Comments
 (0)