diff --git a/recipes/cmatrix/recipe.sh b/recipes/cmatrix/recipe.sh
index fc1ce3683c974124ad321db409a2464d5fd47e7f..3f2b89a6704d8b4cfcb107a9bbe613e07fcf020f 100644
--- a/recipes/cmatrix/recipe.sh
+++ b/recipes/cmatrix/recipe.sh
@@ -14,10 +14,15 @@ function recipe_update {
 
 function recipe_build {
     sysroot="$(realpath ../sysroot)"
-    export LDFLAGS="-L$sysroot/lib"
+    export LDFLAGS="-L$sysroot/lib -static"
     export CPPFLAGS="-I$sysroot/include -I$sysroot/include/ncurses"
     autoreconf -i
-    ./configure --build=${BUILD} --host=${HOST} --prefix=/ --without-fonts
+    ./configure \
+        --build=${BUILD} \
+        --host=${HOST} \
+        --prefix=/ \
+        --without-fonts
+    sed -i'' -e 's|#define USE_TIOCSTI 1|/* #undef USE_TIOCSTI */|g' config.h
     make -j"$(nproc)"
     skip=1
 }