Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/elt-patches:master commit in: /, patches/static-flags/
Date: Thu, 04 Nov 2021 10:33:48
Message-Id: 1636022014.2b7112d147d2fe5d418ecdf2f8d150935761de79.vapier@gentoo
1 commit: 2b7112d147d2fe5d418ecdf2f8d150935761de79
2 Author: Joakim Tjernlund <Joakim.Tjernlund <AT> infinera <DOT> com>
3 AuthorDate: Tue Nov 2 22:42:18 2021 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 4 10:33:34 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/elt-patches.git/commit/?id=2b7112d1
7
8 backport -static-* & -fcilkplus for 2.4.6
9
10 Bug: https://bugs.gentoo.org/812026
11 Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund <AT> infinera.com>
12 Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>
13
14 eltpatch.in | 2 +-
15 patches/static-flags/2.4.6 | 38 ++++++++++++++++++++++++++++++++++++++
16 2 files changed, 39 insertions(+), 1 deletion(-)
17
18 diff --git a/eltpatch.in b/eltpatch.in
19 index 7d3980e..a0b0607 100644
20 --- a/eltpatch.in
21 +++ b/eltpatch.in
22 @@ -129,7 +129,7 @@ elibtoolize() {
23 local force="false"
24 local elt_patches="
25 install-sh ltmain portage relink max_cmd_len sed test tmp cross as-needed target-nm ppc64le
26 - specs fsanitize fuse-ld
27 + specs fsanitize fuse-ld static-flags
28 "
29
30 for x in "$@" ; do
31
32 diff --git a/patches/static-flags/2.4.6 b/patches/static-flags/2.4.6
33 new file mode 100644
34 index 0000000..892d7aa
35 --- /dev/null
36 +++ b/patches/static-flags/2.4.6
37 @@ -0,0 +1,38 @@
38 +https://bugs.gentoo.org/812026
39 +https://lists.gnu.org/archive/html/libtool-patches/2019-05/msg00000.html
40 +
41 +From: Vincent Lefevre <vincent@××××××.net>
42 +Subject: [PATCH] libtool: pass more flags to the linker
43 +Date: Fri, 3 May 2019 15:19:19 +0200
44 +To: libtool-patches@×××.org
45 +
46 +Resolves bug 17750.
47 +
48 +* build-aux/ltmain.in (func_mode_link): In the flags to be passed through
49 +unchanged, also pass -static-* and -fcilkplus.
50 +
51 +Signed-off-by: Vincent Lefevre <vincent@××××××.net>
52 +---
53 + build-aux/ltmain.in | 4 +++-
54 + 1 file changed, 3 insertions(+), 1 deletion(-)
55 +
56 +diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
57 +index 96b37003..c0e925bb 100644
58 +--- ltmain.sh
59 ++++ ltmain.sh
60 +@@ -5380,10 +5380,12 @@ func_mode_link ()
61 + # -stdlib=* select c++ std lib with clang
62 + # -fsanitize=* Clang/GCC memory and address sanitizer
63 + # -fuse-ld=* Linker select flags for GCC
64 ++ # -static-* direct GCC to link specific libraries statically
65 ++ # -fcilkplus Cilk Plus language extension features for C/C++
66 + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
67 + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
68 + -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
69 +- -specs=*|-fsanitize=*|-fuse-ld=*)
70 ++ -specs=*|-fsanitize=*|-fuse-ld=*|-static-*|-fcilkplus)
71 + func_quote_for_eval "$arg"
72 + arg=$func_quote_for_eval_result
73 + func_append compile_command " $arg"
74 +--
75 +2.20.1