We used to have a component of the wiredtiger-test-check-long job that compiled a static wt utility, to make sure it worked OK.
That job was tied to tinderbox, and I wanted to be able to run the job on other machines, so I stripped it from that job. We should create a different job that is "wiredtiger-static-build", which could be tied to tinderbox (or we could make sure the required libraries are on all machines).
The build steps are:
cd build_posix
cleanup() {
status=$?
cd ../
rm -f `ls -t jenkins*.tgz | sed '1,5d'`
tar czf $BUILD_TAG.tgz build_posix
}
../configure --disable-shared --with-builtins=snappy,zlib
make -j8
rm -f wt
make CC='eval "g++ -static"' || cleanup
./wt -V
if [ $? -ne 0 ]; then
echo "Error, WT Utility was not generated or is not functioning"
cleanup
fi
ldd wt || FAIL=1
if [ $FAIL -ne 1 ]; then
echo "Error, WT util not is not statically linked"
cleanup
exit 1
fi