mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
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:
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user