commit:     e67f79a47f2313b36978783d2d7d2c0bc0b2a13c
Author:     Eli Schwartz <eschwartz93 <AT> gmail <DOT> com>
AuthorDate: Wed Mar 13 18:26:18 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Mar 13 21:04:06 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e67f79a4

dev-embedded/ponyprog: mark as LTO-unsafe

Closes: https://bugs.gentoo.org/855272
Signed-off-by: Eli Schwartz <eschwartz93 <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-embedded/ponyprog/ponyprog-3.1.3.ebuild | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/dev-embedded/ponyprog/ponyprog-3.1.3.ebuild 
b/dev-embedded/ponyprog/ponyprog-3.1.3.ebuild
index 2c1f2fd622c7..374c8ea1eee5 100644
--- a/dev-embedded/ponyprog/ponyprog-3.1.3.ebuild
+++ b/dev-embedded/ponyprog/ponyprog-3.1.3.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit cmake udev
+inherit cmake flag-o-matic udev
 
 DESCRIPTION="EEPROM and microcontroller programmer/flasher"
 HOMEPAGE="https://github.com/lancos/ponyprog/";
@@ -31,6 +31,15 @@ RDEPEND="${DEPEND}
 
 PATCHES=( "${FILESDIR}"/${P}-fix-build-system.patch )
 
+src_configure() {
+       # -Werror=odr
+       # https://bugs.gentoo.org/855272
+       # https://github.com/lancos/ponyprog/issues/28
+       filter-lto
+
+       cmake_src_configure
+}
+
 pkg_postinst() {
        udev_reload
 

Reply via email to