diff --git a/buildout/software-profiles/w3m.cfg b/buildout/software-profiles/w3m.cfg
index 4b3a6d5a77bf96d196446f3eb886ac558e86240c..e38e9596c4a4f0f456c378321f63919e8badd5c9 100644
--- a/buildout/software-profiles/w3m.cfg
+++ b/buildout/software-profiles/w3m.cfg
@@ -1,10 +1,28 @@
 [buildout]
-parts = w3m
+extends =
+  ../software-profiles/garbage-collector.cfg
+  ../software-profiles/ncurses.cfg
+  ../software-profiles/openssl.cfg
+
+parts =
+  w3m
 
 [w3m]
 recipe = hexagonit.recipe.cmmi
 md5sum = ba06992d3207666ed1bf2dcf7c72bf58
 url = http://downloads.sourceforge.net/project/w3m/w3m/w3m-0.5.2/w3m-0.5.2.tar.gz
-configure-options = --with-gc=${garbage-collector:location}
+configure-options =
+  --with-gc=${garbage-collector:location}
+  --with-ssl=${openssl:location}
+
+make-options =
+  install-core
+  install-scripts
+
+make-targets =
+  install-core
+  install-scripts
+  
 environment =
-  LDFLAGS =-Wl,-rpath ${garbage-collector:location}/lib
+  CPPFLAGS =-I${ncurses:location}/include/
+  LDFLAGS =-L${ncurses:location}/lib -Wl,-rpath -Wl,${garbage-collector:location}/lib -Wl,-rpath -Wl,${ncurses:location}/lib -Wl,-rpath -Wl,${openssl:location}/lib