From 5eb344b0a55e19c278041b64ffae317f6b902d9a Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Tue, 2 Jul 2024 22:39:35 -0400 Subject: [PATCH] lto fixes to remove extra warnings as needed --- profiles/pentoo/zero-system/profile.bashrc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/profiles/pentoo/zero-system/profile.bashrc b/profiles/pentoo/zero-system/profile.bashrc index 3709b0c245..e8711eec29 100644 --- a/profiles/pentoo/zero-system/profile.bashrc +++ b/profiles/pentoo/zero-system/profile.bashrc @@ -16,6 +16,9 @@ if [[ ${CATEGORY}/${PN} == www-client/chromium ]]; then export CFLAGS="${CFLAGS/-flto/}" export CXXFLAGS="${CXXFLAGS/-flto/}" fi +if [[ ${CATEGORY}/${PN} == app-containers/containerd ]]; then + export MAKEOPTS="${MAKEOPTS} --shuffle=none" +fi if [[ ${CATEGORY}/${PN} == net-libs/ldns ]]; then export MAKEOPTS="${MAKEOPTS} --shuffle=none" fi @@ -155,6 +158,7 @@ if [[ ${CATEGORY}/${PN} == dev-qt/qtnetwork ]]; then export CXXFLAGS="${CXXFLAGS/-Werror=stringop-overread/}" fi if [[ ${CATEGORY}/${PN} == dev-util/android-tools ]]; then + export CFLAGS="${CFLAGS/-Werror=stringop-overread/}" export CXXFLAGS="${CXXFLAGS/-Werror=strict-aliasing/}" export CXXFLAGS="${CXXFLAGS/-Werror=stringop-overread/}" export CXXFLAGS="${CXXFLAGS/-Werror=odr/}" @@ -197,6 +201,9 @@ fi if [[ ${CATEGORY}/${PN} == media-libs/x265 ]]; then export CXXFLAGS="${CXXFLAGS/-flto/}" fi +if [[ ${CATEGORY}/${PN} == media-sound/audacity ]]; then + export CXXFLAGS="${CXXFLAGS/-Werror=strict-aliasing/}" +fi if [[ ${CATEGORY}/${PN} == net-analyzer/gspoof ]]; then export CXXFLAGS="${CXXFLAGS/-Werror=lto-type-mismatch/}" fi