From a6349a873f29d056323332cab4bd0dd510be078d Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 10 Jun 2026 19:21:32 +0100 Subject: [PATCH] dev-cpp/mvfst: filter LTO MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- dev-cpp/mvfst/mvfst-2025.04.14.00-r1.ebuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dev-cpp/mvfst/mvfst-2025.04.14.00-r1.ebuild b/dev-cpp/mvfst/mvfst-2025.04.14.00-r1.ebuild index 36d239182fdf5..b4af153fd76c4 100644 --- a/dev-cpp/mvfst/mvfst-2025.04.14.00-r1.ebuild +++ b/dev-cpp/mvfst/mvfst-2025.04.14.00-r1.ebuild @@ -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)"