diff --git a/buildout/software-profiles/erp5-2.12.cfg b/buildout/software-profiles/erp5-2.12.cfg
index 072fef5ddb6ac489ecba4101ea99a54138a5899d..a2d7bd7926e129fb002c05a5f23dc911a41e6848 100644
--- a/buildout/software-profiles/erp5-2.12.cfg
+++ b/buildout/software-profiles/erp5-2.12.cfg
@@ -43,7 +43,7 @@ on_update = False
 # execution
 cmds =
     cd ${itools-download:destination}
-    ${python2.6:executable} setup.py install_lib -d ${itools:lib}
+    env CFLAGS="$(pkg-config glib-2.0 --cflags-only-I)" ${python2.6:executable} setup.py install_lib -d ${itools:lib}
 
 uninstall_cmds =
     cd ${itools-download:destination}