commit: a8b4e336f1685176f62c62ab38d34e8dc2e9a9cb Author: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> AuthorDate: Tue Feb 15 20:11:15 2022 +0000 Commit: Göktürk Yüksek <gokturk <AT> gentoo <DOT> org> CommitDate: Tue Feb 15 20:17:12 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8b4e336
app-crypt/jitterentropy: append -O0 to CPPFLAGS #833256 The upstream doesn't allow any code optimizations and handles CFLAGS accordingly. Handle CPPFLAGS in the ebuild by explicitly appending it with '-O0'. Closes: https://bugs.gentoo.org/833256 Signed-off-by: Göktürk Yüksek <gokturk <AT> gentoo.org> app-crypt/jitterentropy/jitterentropy-3.3.1.ebuild | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app-crypt/jitterentropy/jitterentropy-3.3.1.ebuild b/app-crypt/jitterentropy/jitterentropy-3.3.1.ebuild index c089421d22ee..4f867c12ca00 100644 --- a/app-crypt/jitterentropy/jitterentropy-3.3.1.ebuild +++ b/app-crypt/jitterentropy/jitterentropy-3.3.1.ebuild @@ -34,6 +34,9 @@ src_compile() { # This allows those default flags to be overwritten by # user-defined CFLAGS. Restore some of the defaults. append-cflags '-fwrapv' '-fvisibility=hidden' '-fPIE' + # Optimizations are not allowed by upstream, which already + # overrides CFLAGS in Makefile. We need to handle CPPFLAGS here. + append-cppflags '-O0' emake AR="$(tc-getAR)" CC="$(tc-getCC)" }
