--- a/scripts/link_pluto.php
+++ b/scripts/link_pluto.php
@@ -2,7 +2,7 @@
 require __DIR__."/common.php";
 check_compiler();
 
-$cmd = $compiler." -o src/pluto";
+$cmd = $compiler." -lpluto -o src/pluto";
 if($is_windows_target)
 {
 	$cmd .= ".exe";
