zero-profile: more lto exceptions

This commit is contained in:
Rick Farina (Zero_Chaos) 2024-03-04 20:39:30 -05:00
parent b13b054192
commit b754d43cf9
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC

View file

@ -58,14 +58,17 @@ fi
if [[ ${CATEGORY}/${PN} == media-video/mplayer ]]; then
export CFLAGS="${CFLAGS/-flto/}"
fi
if [[ ${CATEGORY}/${PN} == net-fs/nfs-utils ]]; then
export CFLAGS="${CFLAGS/-Werror=stringop-overread/}"
fi
if [[ ${CATEGORY}/${PN} == media-video/vlc ]]; then
export CFLAGS="${CFLAGS/-Werror=stringop-overread/}"
export CFLAGS="${CFLAGS/-Werror=strict-aliasing/}"
export CFLAGS="${CFLAGS/-Werror=lto-type-mismatch/}"
fi
if [[ ${CATEGORY}/${PN} == net-fs/nfs-utils ]]; then
export CFLAGS="${CFLAGS/-Werror=stringop-overread/}"
fi
if [[ ${CATEGORY}/${PN} == net-wireless/bladerf ]]; then
export CFLAGS="${CFLAGS/-Werror=lto-type-mismatch/}"
fi
if [[ ${CATEGORY}/${PN} == sys-apps/util-linux ]]; then
export CFLAGS="${CFLAGS/-flto/}"
fi