Skip to content

Commit

Permalink
zero-profile: remove some broken lto
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroChaos- committed Dec 21, 2023
1 parent 8dcaba6 commit 1b1fd49
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions profiles/pentoo/zero-system/profile.bashrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
# https://bugs.gentoo.org/877761
# https://bugs.gentoo.org/860873
# https://bugs.gentoo.org/861872
# if [[ $PN != kismet ]] && [[ $PN != bladerf ]] && [[ $PN != gnuradio ]] && [[ $PN != trunk-recorder ]] && [[ $PN != osmo-fl2k ]]; then
# export CFLAGS="${CFLAGS} -Werror=strict-aliasing -flto"
# export CXXFLAGS="${CXXFLAGS} -Werror=strict-aliasing -flto"
# fi

# Packages that need stringop-overread disabled
if [[ ${CATEGORY}/${PN} == media-video/ffmpeg ]]; then
Expand All @@ -27,10 +23,29 @@ if [[ ${CATEGORY}/${PN} == app-crypt/hashcat ]]; then
fi

# These packages need lto disabled
#if [[ ${CATEGORY}/${PN} == app-containers/podman ]]; then
# https://bugs.gentoo.org/919314
# export CFLAGS="${CFLAGS/-flto -Werror=strict-aliasing -Werror=odr -Werror=lto-type-mismatch -Wstringop-overread -Werror=stringop-overread/}"
# export CXXFLAGS="${CXXFLAGS/-flto -Werror=strict-aliasing -Werror=odr -Werror=lto-type-mismatch -Wstringop-overread -Werror=stringop-overread/}"
#fi
# CFLAGS
if [[ ${CATEGORY}/${PN} == app-crypt/mit-krb5 ]]; then
export CFLAGS="${CFLAGS/-flto/}"
fi
if [[ ${CATEGORY}/${PN} == dev-python/numpy ]]; then
export CFLAGS="${CFLAGS/-flto/}"
fi
if [[ ${CATEGORY}/${PN} == dev-util/radare2 ]]; then
export CFLAGS="${CFLAGS/-flto/}"
fi
if [[ ${CATEGORY}/${PN} == sys-apps/util-linux ]]; then
export CFLAGS="${CFLAGS/-flto/}"
fi
if [[ ${CATEGORY}/${PN} == sys-devel/binutils ]]; then
export CFLAGS="${CFLAGS/-flto/}"
fi
# CXXFLAGS
if [[ ${CATEGORY}/${PN} == dev-qt/qtnetwork ]]; then
export CXXFLAGS="${CXXFLAGS/-flto/}"
fi
# FFLAGS
if [[ ${CATEGORY}/${PN} == dev-python/scipy ]]; then
export FFLAGS="${FFLAGS/-flto/}"
fi

QA_CMP_ARGS='--quiet-nodebug'

0 comments on commit 1b1fd49

Please sign in to comment.