dev-cpp/mvfst: filter LTO

At least with -fno-semantic-interposition and LTO:
```
mvfst-2025.04.14.00/quic/api/QuicBatchWriter.h:54:7: error: virtual table of type ‘struct IOBufBatchWriter’ violates one definition rule [-Werror=odr]
   54 | class IOBufBatchWriter : public BatchWriter {
      |       ^
mvfst-2025.04.14.00/quic/api/QuicBatchWriter.h:54:7: note: the conflicting type defined in another translation unit has virtual table with more entries
   54 | class IOBufBatchWriter : public BatchWriter {
      |       ^
```

Given our bugs don't tend to go far upstream, just filter.

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2026-06-10 19:21:32 +01:00
parent 2d03409ea6
commit a6349a873f

View File

@@ -13,7 +13,7 @@ EAPI=8
# dev-cpp/wangle
# dev-util/watchman
inherit cmake
inherit cmake flag-o-matic
DESCRIPTION="An implementation of the QUIC transport protocol"
HOMEPAGE="https://github.com/facebook/mvfst"
@@ -44,6 +44,9 @@ PATCHES=(
)
src_configure() {
# -Wodr with IOBufBatchWriter, at least with -fno-semantic-interposition
filter-lto
local mycmakeargs=(
-DCMAKE_INSTALL_MODULE_DIR="$(get_libdir)/cmake/${PN}"
-DCMAKE_INSTALL_LIBDIR="$(get_libdir)"