]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl-compilers.m4: use -O2 as default optimize for clang
authorDaniel Stenberg <daniel@haxx.se>
Tue, 6 Sep 2022 14:39:42 +0000 (16:39 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 6 Sep 2022 16:47:48 +0000 (18:47 +0200)
Not -Os

Closes #9444

m4/curl-compilers.m4

index ddd44acb5380904a2de265e3b664cf31bc0b33bc..dba2c755f99dc239cdf97100a6750968570a2cf2 100644 (file)
@@ -107,7 +107,7 @@ AC_DEFUN([CURL_CHECK_COMPILER_CLANG], [
     compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
     flags_dbg_yes="-g"
     flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
-    flags_opt_yes="-Os"
+    flags_opt_yes="-O2"
     flags_opt_off="-O0"
   else
     AC_MSG_RESULT([no])