# dev-libs/dietlibc doesn't build with hardened gcc, workaround that if [[ "$PN" == dietlibc || "$PN" == util-vserver ]]; then ___vanilla_gcc_spec_file=$(gcc-config -c | sed 's|-gnu-|-gnu/|; s|.*|/usr/lib/gcc/&/vanilla.specs|') if [[ -e "$___vanilla_gcc_spec_file" ]]; then einfo "forcing vanilla gcc profile for dietlibc" export GCC_SPECS="$___vanilla_gcc_spec_file" fi unset ___vanilla_gcc_spec_file fi