diff --git a/buildout/software-profiles/mysql-5.1.cfg b/buildout/software-profiles/mysql-5.1.cfg
index e7fad84a06201141de856b42b31de44c08b73430..bcf17947ac85c4067c5fc19f1634c132903fa726 100644
--- a/buildout/software-profiles/mysql-5.1.cfg
+++ b/buildout/software-profiles/mysql-5.1.cfg
@@ -62,4 +62,4 @@ environment =
   PATH =${autoconf:location}/bin:${automake-1.11:location}/bin:${libtool:location}/bin:${bison:location}/bin:${flex:location}/bin:%(PATH)s
   CFLAGS =-I${ncurses:location}/include -I${readline:location}/include
   CXXFLAGS =-I${ncurses:location}/include -I${readline:location}/include
-  LDFLAGS =-Wl,-rpath -Wl,${zlib:location}/lib -Wl,-rpath -Wl,${ncurses:location}/lib -Wl,-rpath -Wl,${readline:location}/lib
+  LDFLAGS =-L${readline:location}/lib -L${ncurses:location}/lib -Wl,-rpath -Wl,${zlib:location}/lib -Wl,-rpath -Wl,${ncurses:location}/lib -Wl,-rpath -Wl,${readline:location}/lib