diff --git a/buildout/software-profiles/gcc.cfg b/buildout/software-profiles/gcc.cfg
index b1b4c66492b24e7a8faf4c0ce237506146e983ad..f08bbd787665aa11ced52b947f73ae33c5574251 100644
--- a/buildout/software-profiles/gcc.cfg
+++ b/buildout/software-profiles/gcc.cfg
@@ -66,7 +66,7 @@ depends =
 recipe = hexagonit.recipe.cmmi
 path = ${gcc-java-source:location}
 md5sum = bb3265edf0fa7543e50cedb93e04e427
-configure-command = make clean \\; ./configure
+configure-command = make clean \\; make distclean \\; ./configure
 # GMP does not correctly detect achitecture so it have to be given
 # as hexagonit.recipe.cmmi is using shell expansion in subproceses
 # backticks are working