diff --git a/build_lofar.sh b/build_lofar.sh
index 0a11f9e36306c387cc651769dc1d297e908847da..45e120bdace16fbcf7f2688c2ebc9dbe9be7e0e5 100644
--- a/build_lofar.sh
+++ b/build_lofar.sh
@@ -693,7 +693,7 @@ EOT
     test -d "$pp/lib" &&
       cat <<EOT
 export LD_RUN_PATH=\"\$lofar_prefix/$p/lib:\$LD_RUN_PATH\"
-export LIBRARY_PATH\"\$lofar_prefix/$p/lib:\$LIBRARY_PATH\"
+export LIBRARY_PATH=\"\$lofar_prefix/$p/lib:\$LIBRARY_PATH\"
 EOT
     test -d "$pp/include" &&
       echo "export CPATH=\"\$lofar_prefix/$p/include:\$CPATH\""