From 9a871a088dfd87fd5ed99ea96760a35d49d430d5 Mon Sep 17 00:00:00 2001 From: "Rick Farina (Zero_Chaos)" Date: Wed, 21 Feb 2024 13:45:44 -0500 Subject: [PATCH] zero-profile: more lto carve outs --- profiles/pentoo/zero-system/profile.bashrc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/profiles/pentoo/zero-system/profile.bashrc b/profiles/pentoo/zero-system/profile.bashrc index 2fbcb60e9..c5ece2bd0 100644 --- a/profiles/pentoo/zero-system/profile.bashrc +++ b/profiles/pentoo/zero-system/profile.bashrc @@ -30,6 +30,10 @@ fi if [[ ${CATEGORY}/${PN} == app-crypt/mit-krb5 ]]; then export CFLAGS="${CFLAGS/-flto/}" fi +if [[ ${CATEGORY}/${PN} == app-text/texlive-core ]]; then + export CFLAGS="${CFLAGS/-Werror=lto-type-mismatch/}" + export CFLAGS="${CFLAGS/-Werror=strict-aliasing/}" +fi if [[ ${CATEGORY}/${PN} == dev-db/mariadb-connector-c ]]; then export CFLAGS="${CFLAGS/-Werror=lto-type-mismatch/}" fi @@ -54,6 +58,9 @@ 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/}" @@ -63,6 +70,7 @@ if [[ ${CATEGORY}/${PN} == sys-apps/util-linux ]]; then export CFLAGS="${CFLAGS/-flto/}" fi if [[ ${CATEGORY}/${PN} == sys-devel/binutils ]]; then + export CFLAGS="${CFLAGS/-Werror=stringop-overread/}" export CFLAGS="${CFLAGS/-flto/}" fi if [[ ${CATEGORY}/${PN} == sys-fs/jfsutils ]]; then @@ -71,6 +79,9 @@ fi if [[ ${CATEGORY}/${PN} == sys-libs/volk ]]; then export CFLAGS="${CFLAGS/-Werror=lto-type-mismatch/}" fi +if [[ ${CATEGORY}/${PN} == x11-libs/libdrm ]]; then + export CFLAGS="${CFLAGS/-Werror=stringop-overread/}" +fi # CXXFLAGS if [[ ${CATEGORY}/${PN} == app-crypt/ophcrack ]]; then export CXXFLAGS="${CXXFLAGS/-Werror=stringop-overread/}"