export LDFLAGS="-static" export CFLAGS="-static" ./configure
Edit the file config.h and remove the line #define HAVE_openpty.
cd misc-utils make
Now you should have a static linked script tool.