msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.24k stars 1.21k forks source link

[abseil-cpp] No static libraries in development package #17852

Open davidgiven opened 1 year ago

davidgiven commented 1 year ago

Description / Steps to reproduce the issue

The mingw-w64-i686-abseil-cpp package doesn't contain any static libraries. It's got the dlls, and the dll.a stub files, but no normal statically linked libraries, making static linking of e.g. protobuf (which depends on abseil) impossible.

From looking at the abseil cmakefiles, it looks like the build system can build either the dynamic libraries or the static libraries. So this will mean configuring and building twice in the PKGBUILD file. Is that a problem? I'm happy to produce a PR.

Reproduction steps:

  1. Examine package contents.
  2. Observe there are no /mingw*/lib/libabsl.<something>.a files which aren't .dll.a files.

Expected behavior

.

Actual behavior

.

Verification

Windows Version

MINGW32_NT-10.0-19045

MINGW environments affected

Are you willing to submit a PR?

yup

and3rson commented 4 weeks ago

I second this. Linking protobuf without static abseil is impossible when using msys2 packages. Protobuf provides a static library (libprotobuf.a) as well as a dynamic (libprotobuf.dll.a), so the missing libabseil.a is a real blocker.