From: Ileana Dumitrescu Date: Mon, 14 Jul 2025 15:39:21 +0000 (+0300) Subject: ltmain.in: Handle clang's target architecture flag X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=58f12166a05e8041de34a3c90cf01d9c283124fc;p=thirdparty%2Flibtool.git ltmain.in: Handle clang's target architecture flag * build-aux/ltmain.in: Pass clang's '--target' flag for specifying architecture through libtool unchanged. --- diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in index 9c85d6603..1417745cf 100644 --- a/build-aux/ltmain.in +++ b/build-aux/ltmain.in @@ -5641,6 +5641,7 @@ func_mode_link () # @file GCC response files # -tp=* Portland pgcc target processor selection # --sysroot=* for sysroot support + # --target=* for target architecture support # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization # -specs=* GCC specs files # -stdlib=* select c++ std lib with clang @@ -5660,7 +5661,7 @@ func_mode_link () # -Wa,* Pass flags directly to the assembler # -Werror, -Werror=* Report (specified) warnings as errors -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=*| \ + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*|--target=*| \ -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-no-canonical-prefixes| \ -stdlib=*|-rtlib=*|--unwindlib=*| \ -specs=*|-fsanitize=*|-fno-sanitize*|-shared-libsan|-static-libsan| \