Skip to content

Commit

Permalink
do_autogen: control optimization level
Browse files Browse the repository at this point in the history
-O 2 -> -O2

Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
liewegas committed Mar 27, 2012
1 parent 362ca19 commit 6ab8526
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions do_autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
Expand Down

0 comments on commit 6ab8526

Please sign in to comment.