@@ -17,10 +17,15 @@ if [ "$1" = "distclean" ]; then shift mode="distclean" fi + +if [ "${mode}" = "clean" -o "${mode}" = "distclean" ]; then + # List all additional packages here so that they get cleaned up + ADDPKGS="${ADDPKGS} thread" +fi CONFIGUREEXTRA="$@" export CONFIGUREEXTRA # Add packages implied by the additional arguments