From: Manoj Gupta Date: Fri, 16 Dec 2022 18:10:58 +0000 (-0800) Subject: libtool: Support "-fno-sanitize*" options. X-Git-Tag: v2.5.0~69 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8878355f1d531933a23e705bdaafcd180d803c9b;p=thirdparty%2Flibtool.git libtool: Support "-fno-sanitize*" options. "-fno-sanitize*" options e.g. -fno-sanitize=alignment or -fno-sanitize-recover=all are used to tune the behvior of sanitizers in GCC/clang. Let libtool pass these options to compiler similar to fsanitize=*. * build-aux/ltmain.in: Handle -fno-sanitize*. Signed-off-by: Manoj Gupta --- diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in index 34af382a6..fb49d6c8f 100644 --- a/build-aux/ltmain.in +++ b/build-aux/ltmain.in @@ -5407,6 +5407,7 @@ func_mode_link () # -specs=* GCC specs files # -stdlib=* select c++ std lib with clang # -fsanitize=* Clang/GCC memory and address sanitizer + # -fno-sanitize* Clang/GCC memory and address sanitizer # -shared-libsan Link with shared sanitizer runtimes (Clang) # -static-libsan Link with static sanitizer runtimes (Clang) # -fuse-ld=* Linker select flags for GCC @@ -5415,8 +5416,8 @@ func_mode_link () -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ - -specs=*|-fsanitize=*|-shared-libsan|-static-libsan|-fuse-ld=*|-Wa,*| \ - -Werror|-Werror=*) + -specs=*|-fsanitize=*|-fno-sanitize*|-shared-libsan|-static-libsan| \ + -fuse-ld=*|-Wa,*|-Werror|-Werror=*) func_quote_arg pretty "$arg" arg=$func_quote_arg_result func_append compile_command " $arg"