From 1c0f52a45d8e1227ff99bd8667de6b7533e6c93a Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Tue, 2 Nov 2021 23:42:18 +0100 Subject: [PATCH] backport -static-* & -fcilkplus for 2.4.6 Signed-off-by: Joakim Tjernlund --- eltpatch.in | 2 +- patches/static-asan/2.4.6 | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 patches/static-asan/2.4.6 diff --git a/eltpatch.in b/eltpatch.in index 7fa21bc..4bff935 100644 --- a/eltpatch.in +++ b/eltpatch.in @@ -127,7 +127,7 @@ elibtoolize() { local force="false" local elt_patches=" install-sh ltmain portage relink max_cmd_len sed test tmp cross as-needed target-nm ppc64le - fsanitize fuse-ld + fsanitize fuse-ld static-asan " for x in "$@" ; do diff --git a/patches/static-asan/2.4.6 b/patches/static-asan/2.4.6 new file mode 100644 index 0000000..3b7a15d --- /dev/null +++ b/patches/static-asan/2.4.6 @@ -0,0 +1,20 @@ +Description: Pass more flags to the linker unchanged. Closes: #751161. +Author: Vincent Lefevre +Last-Updated: 2019-05-03 + +--- ltmain.sh 2019-05-03 11:11:05.000000000 +0200 ++++ ltmain.sh 2019-05-03 11:18:59.209409497 +0200 +@@ -5383,10 +5383,12 @@ + # -stdlib=* select c++ std lib with clang + # -fsanitize=* Clang/GCC memory and address sanitizer + # -fuse-ld=* Linker select flags for GCC ++ # -static-* direct GCC to link specific libraries statically ++ # -fcilkplus Cilk Plus language extension features for C/C++ + -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=*) ++ -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus) + func_quote_for_eval "$arg" + arg=$func_quote_for_eval_result + func_append compile_command " $arg" -- 2.32.0