diff --git a/tools/build-all.sh b/tools/build-all.sh
index 3ef79a4017c47ba2b12821657af0309191415447..9946e9f59bc3656ee6f829aac6bd6d78fee8c4cf 100755
--- a/tools/build-all.sh
+++ b/tools/build-all.sh
@@ -37,7 +37,7 @@ VERSION="CVS Head `date '+%Y-%m-%d %H:%M:%S'`"
 BASE=build
 CREATE_OPT=""
 
-while getopts "Ub:v:C:o:8:?" arg
+while getopts "UB:b:v:C:o:8:?" arg
 do
     case $arg in
       b) BASE="$OPTARG" ;;