diff --git a/configure.ac b/configure.ac
index ad506818f2572db75b7cd96bc2b06586b49d7094..c235137df1926a91d8a8127c1a2cadfb4c421938 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,7 +27,7 @@ AC_ARG_WITH(lib-path,
   [with_lib_path=''])
 
 if test x$with_lib_path != x ; then
-  LDFLAGS="-L `echo $with_lib_path | sed 's/:/ -L /g'`"
+  LDFLAGS="$LDFLAGS -L `echo $with_lib_path | sed 's/:/ -L /g'`"
 fi
 
 AC_ARG_ENABLE(public-key,