try install_name_tool
@@ -12,4 +12,8 @@ make check
make install
+if [ `uname` == Darwin ]; then
+ install_name_tool -change /usr/lib/libncurses.5.4.dylib "$PREFIX"/sysroot/usr/lib/libncurses.5.4.dylib "$PREFIX"/bin/checktex || true
+fi
+
make test
