abinfo "Setting CPPFLAGS for libiberty and gcc"
sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" "${SRCDIR}"/{libiberty,gcc}/configure

abinfo "Removing +gitblahblah fron version number to appease arduino-mk"
echo ${PKGVER/+git*/} > ${SRCDIR}/gcc/BASE-VER

abinfo "Setting default CFLAGS when building target static libraries"
export CFLAGS_FOR_TARGET='-O2 -pipe'
export CXXFLAGS_FOR_TARGET='-O2 -pipe -fno-threadsafe-statics'
