diff options
author | Sage Weil <sage@newdream.net> | 2012-03-27 10:41:40 -0700 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2012-03-27 10:41:40 -0700 |
commit | 6ab8526438f45def1313182d38382c50f5ccbd04 (patch) | |
tree | 0b017c575dd146e7b304f2139d29fb5291d6b2b5 /do_autogen.sh | |
parent | 362ca19bc86870f5c0574dcfcb433d38fadcd0a7 (diff) | |
download | ceph-6ab8526438f45def1313182d38382c50f5ccbd04.tar.gz |
do_autogen: control optimization level
-O 2 -> -O2
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'do_autogen.sh')
-rwxr-xr-x | do_autogen.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/do_autogen.sh b/do_autogen.sh index eb0c8c6d31f..875f9a0d24e 100755 --- a/do_autogen.sh +++ b/do_autogen.sh @@ -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 |