diff --git a/buildout/software-profiles/gettext.cfg b/buildout/software-profiles/gettext.cfg
index 4738c860ff2a27ad518ef3330f98dc8b7b8fec3a..3f59ecf53e3a9bfb9a2667408b130ec1dcab3e89 100644
--- a/buildout/software-profiles/gettext.cfg
+++ b/buildout/software-profiles/gettext.cfg
@@ -1,6 +1,8 @@
 [buildout]
 parts =
   gettext
+extends =
+  ../software-profiles/libxml2.cfg
 
 [gettext]
 recipe = erp5.recipe.cmmisafe
@@ -10,4 +12,9 @@ configure-options =
   --enable-shared
   --disable-java
   --disable-csharp
+  --with-libxml2-prefix=${libxml2:location}
   --with-included-gettext
+  --without-emacs
+environment =
+  CFLAGS=-I${libxml2:location}/include
+  LDFLAGS=-Wl,-rpath -Wl,${libxml2:location}/lib