]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
do_autogen: control optimization level
authorSage Weil <sage@newdream.net>
Tue, 27 Mar 2012 17:41:40 +0000 (10:41 -0700)
committerSage Weil <sage@newdream.net>
Tue, 27 Mar 2012 17:41:40 +0000 (10:41 -0700)
-O 2 -> -O2

Signed-off-by: Sage Weil <sage@newdream.net>
do_autogen.sh

index eb0c8c6d31fdaf2a2fe475cff1b7acbae2fcf0a0..875f9a0d24e625b55e105528eec1e0872c7da15b 100755 (executable)
@@ -14,6 +14,7 @@ do_autogen.sh: make a ceph build by running autogen, etc.
 -T                               --without-tcmalloc
 -e <path>                        dump encoded objects to <path>
 -P                               profiling build
+-O <level>                       optimize
 
 EOF
 }
@@ -26,12 +27,14 @@ die() {
 debug_level=0
 verbose=0
 profile=0
-CONFIGURE_FLAGS=
-while getopts  "d:e:hHTPv" flag
+CONFIGURE_FLAGS=""
+while getopts  "d:e:hHTPvO:" flag
 do
     case $flag in
     d) debug_level=$OPTARG;;
 
+    O) CFLAGS="${CFLAGS} -O$OPTARG";;
+
     P) profile=1;;
 
     h) usage