On Sat, Nov 22, 2025 at 3:51 PM Practice2001 via ffmpeg-devel
<[email protected]> wrote:
> MSVC static builds currently always use ".a" for static library suffixes
> (e.g. libavcodec.a, libavformat.a). This causes failures when linking
> with Visual Studio, which expects ".lib" static libraries.
>
> This patch adjusts configure so that when --toolchain=msvc is used,
> LIBSUF is correctly set to ".lib" instead of the Unix default ".a".
>
> This fixes linking with MSVC and Visual Studio-based build systems.
>
[...]

Hi,

This appears to have been fixed by commit 8eca3fa619a7 ("configure:
use proper Windows-style static library naming"), and then re-shuffled
in commit 671e54d7151b ("configure: add -static suffix to internal
static libs for test programs").

> ---
>  configure | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/configure b/configure
> index 47f9b31439..596d66ce53 100755
> --- a/configure
> +++ b/configure
> @@ -6067,7 +6067,7 @@ case $target_os in
>      win32|win64)
>          disable symver
>          LIBPREF=""
> -               LIBSUF=".lib"
> +        LIBSUF=".lib"

Not really important, but I'm curious what happened here - the
original doesn't match what was in the repository, even before the
commits above.

Thanks,
-- Daniel
_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to