diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2021-06-01 08:01:46 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2021-06-01 19:37:55 -0400 |
commit | 6e7b4263ae96eb79862bbd9e9ad7820e0dce827c (patch) | |
tree | 084fafb33806367e99e2d0d6e0a7089d3dca95d3 /dev-libs/trio | |
parent | games-emulation/fbzx: add 4.6.0, EAPI-7 (diff) | |
download | gentoo-6e7b4263ae96eb79862bbd9e9ad7820e0dce827c.tar.gz gentoo-6e7b4263ae96eb79862bbd9e9ad7820e0dce827c.tar.bz2 gentoo-6e7b4263ae96eb79862bbd9e9ad7820e0dce827c.zip |
dev-libs/trio: fix build with -Os
Closes: https://bugs.gentoo.org/792075
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-libs/trio')
-rw-r--r-- | dev-libs/trio/files/trio-1.16-no-inline.patch | 8 | ||||
-rw-r--r-- | dev-libs/trio/trio-1.16.ebuild | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/dev-libs/trio/files/trio-1.16-no-inline.patch b/dev-libs/trio/files/trio-1.16-no-inline.patch new file mode 100644 index 000000000000..b1584344a111 --- /dev/null +++ b/dev-libs/trio/files/trio-1.16-no-inline.patch @@ -0,0 +1,8 @@ +Let compiler decide what to inline (fixes build with -Os). +https://bugs.gentoo.org/792075 +--- a/triodef.h ++++ b/triodef.h +@@ -315,2 +315,3 @@ + #endif ++#undef TRIO_INLINE + #if !defined(TRIO_INLINE) diff --git a/dev-libs/trio/trio-1.16.ebuild b/dev-libs/trio/trio-1.16.ebuild index 1980624be416..bf7d164f5baf 100644 --- a/dev-libs/trio/trio-1.16.ebuild +++ b/dev-libs/trio/trio-1.16.ebuild @@ -13,6 +13,9 @@ LICENSE="trio" SLOT="0" KEYWORDS="~amd64 ~x86" +PATCHES=( + "${FILESDIR}"/${P}-no-inline.patch +) HTML_DOCS=( html/. ) src_prepare() { |