summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-12-16 13:16:43 -0600
committerAlex Ameen <alex.ameen.tx@gmail.com>2022-12-16 13:16:43 -0600
commit1ec8fa28dcb29500d485c136db28315671ec4c3b (patch)
tree38cb23f0e9240591f19b4f312c5470b22aae4fc6
parent6132006b5fb6b95f31c30a972fbb829f93e1878b (diff)
downloadlibtool-master.tar.gz
libtool: passthru '-Werror' flagsHEADmaster
* build-aux/ltmain.in: Pass '-Werror' flags to linker. Copyright-paperwork-exempt: Yes
-rw-r--r--build-aux/ltmain.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index a5f21a1d..3b76bd08 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -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"