diff --git a/tools/build-system/hudson-sflphone-script.sh b/tools/build-system/hudson-sflphone-script.sh
index c2a16a0b6f852b8fa24d18388d4a9e496258996c..dbb1277e395f36aa494aa60430e5dd63f7fc1cfd 100755
--- a/tools/build-system/hudson-sflphone-script.sh
+++ b/tools/build-system/hudson-sflphone-script.sh
@@ -135,7 +135,7 @@ function build_daemon {
     # Compile the daemon
     ./autogen.sh || exit_clean 1
     #FIXME: this is a temporary hack around linking failure on jenkins
-    LDFLAGS=-gcrypt ./configure $DOPTS
+    LDFLAGS=-lgcrypt ./configure $DOPTS
     make clean
     make -j
     # Remove the previous XML test file