diff --git a/tools/build-system/hudson-sflphone-script.sh b/tools/build-system/hudson-sflphone-script.sh
index dab2378951c0a09302a877ea21d14b4d1754aead..b4304435661b1e46d497fed51f586b7479b14425 100755
--- a/tools/build-system/hudson-sflphone-script.sh
+++ b/tools/build-system/hudson-sflphone-script.sh
@@ -114,14 +114,20 @@ function launch_functional_test_daemon {
 }
 
 function build_contrib {
-    pushd contrib
-    mkdir -p native
-    pushd native
-    ../bootstrap
-    # list dependencies which will be added
-    make list
-    make
-    popd
+    if [ -d contrib ] ; then
+        pushd contrib
+        mkdir -p native
+        pushd native
+        ../bootstrap
+        # list dependencies which will be added
+        make list
+        make
+        popd
+    else
+        # We're on 1.4.x
+        pushd libs
+        ./compile_pjsip.sh
+    fi
     popd
 }