]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: passthru '-Werror' flags
authorSam James <sam@gentoo.org>
Fri, 16 Dec 2022 19:16:43 +0000 (13:16 -0600)
committerAlex Ameen <alex.ameen.tx@gmail.com>
Fri, 16 Dec 2022 19:16:43 +0000 (13:16 -0600)
* build-aux/ltmain.in: Pass '-Werror' flags to linker.

Copyright-paperwork-exempt: Yes

build-aux/ltmain.in

index a5f21a1db0548eebb2773e8a415c7d959e5d714f..3b76bd08e8b4efe08f9a0a787fc773849dbcc658 100644 (file)
@@ -5408,10 +5408,11 @@ func_mode_link ()
       # -fsanitize=*         Clang/GCC memory and address sanitizer
       # -fuse-ld=*           Linker select flags for GCC
       # -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=*| \
       -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
-      -specs=*|-fsanitize=*|-fuse-ld=*|-Wa,*)
+      -specs=*|-fsanitize=*|-fuse-ld=*|-Wa,*|-Werror|-Werror=*)
         func_quote_arg pretty "$arg"
        arg=$func_quote_arg_result
         func_append compile_command " $arg"