Skip to content

Commit

Permalink
lto fixes to remove extra warnings as needed
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroChaos- committed Jul 3, 2024
1 parent 0ebc8ed commit 5eb344b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions profiles/pentoo/zero-system/profile.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/}"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5eb344b

Please sign in to comment.