added dependency
diff --git a/src/jsontestrunner/sconscript b/src/jsontestrunner/sconscript
index e9fe37f..6e68e31 100644
--- a/src/jsontestrunner/sconscript
+++ b/src/jsontestrunner/sconscript
@@ -4,3 +4,6 @@
     main.cpp
      """ ),
     'jsontestrunner' )
+
+# For 'check' to work, 'libs' must be built first.
+env_testing.Depends('jsontestrunner', '#libs')