diff options
author | 2024-01-15 20:25:19 -0500 | |
---|---|---|
committer | 2024-01-16 01:36:58 +0000 | |
commit | 4be8f4241cf7b9f7146e41f5d072c73726a59796 (patch) | |
tree | 7a7a63d3cecf618b20774527b018902a24687ede | |
parent | Makefile: add trivial check target (diff) | |
download | elt-patches-4be8f4241cf7b9f7146e41f5d072c73726a59796.tar.gz elt-patches-4be8f4241cf7b9f7146e41f5d072c73726a59796.tar.bz2 elt-patches-4be8f4241cf7b9f7146e41f5d072c73726a59796.zip |
werror patch: add a variant that works on debian-built dists
Debian applies their own patches to libtool, so tarballs generated on
debian systems need different patches.
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | patches/werror/2.4.7-debian | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/patches/werror/2.4.7-debian b/patches/werror/2.4.7-debian new file mode 100644 index 0000000..d585724 --- /dev/null +++ b/patches/werror/2.4.7-debian @@ -0,0 +1,34 @@ +https://lists.gnu.org/archive/html/libtool-patches/2022-12/msg00000.html + +From eb8952bf6df858b144f2dc8b573782e25b527c01 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Sat, 10 Dec 2022 02:00:22 +0000 +Subject: [PATCH] Allow -Werror and -Werror=* through flag filtering + +* build-aux/ltmain.in (func_mode_link): allow -Werror and -Werror=* through + flat filtering at link time. + + This is needed for detecting likely-runtime problems with LTO using + e.g. -Werror=odr or -Werror=lto-type-mismatch. + +Bug: https://bugs.gentoo.org/884767 +Signed-off-by: Sam James <sam@gentoo.org> +[rebased on top of Debian ltmain.sh] +Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> +--- a/ltmain.sh ++++ b/ltmain.sh +@@ -7564,10 +7564,11 @@ func_mode_link () + # -static-* direct GCC to link specific libraries statically + # -fcilkplus Cilk Plus language extension features for C/C++ + # -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=*|-static-*|-fcilkplus|-Wa,*) ++ -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus|-Wa,*|-Werror|-Werror=*) + func_quote_arg pretty "$arg" + arg=$func_quote_arg_result + func_append compile_command " $arg" +-- +2.43.0 |