--- qt4-r2.eclass +++ qt4-r2.eclass @@ -212,6 +212,7 @@ # for both release and debug builds local CONFIG_ADD="release" local CONFIG_REMOVE="debug" + local DELETE_FLAGS="-pipe -g -ggdb3 -O -O0 -O1 -O2 -O3 -Os" if has debug ${IUSE} && use debug; then CONFIG_ADD="debug" CONFIG_REMOVE="release" @@ -237,6 +238,8 @@ END { printf "\nCONFIG -= debug_and_release %s\n", rem >> file; printf "CONFIG += %s\n", add >> file; + printf "QMAKE_CFLAGS -= %s\n", del_flags >> file; + printf "QMAKE_CXXFLAGS -= %s\n", del_flags >> file; print fixed; }' local file= @@ -244,7 +247,7 @@ grep -q '^### eqmake4 was here ###$' "${file}" && continue local retval=$({ rm -f "${file}" || echo "FAILED" - awk -v file="${file}" -- "${awkscript}" add=${CONFIG_ADD} rem=${CONFIG_REMOVE} || echo "FAILED" + awk -v file="${file}" -- "${awkscript}" add=${CONFIG_ADD} rem=${CONFIG_REMOVE} del_flags="${DELETE_FLAGS}" || echo "FAILED" } < "${file}") if [[ ${retval} == 1 ]]; then einfo " - fixed CONFIG in ${file}"