Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/compiler-rt/
Date: Wed, 24 Aug 2022 04:59:15
Message-Id: 1661317135.7b05d4a0ac1d854afa97048fa1fe166d0e123d61.sam@gentoo
1 commit: 7b05d4a0ac1d854afa97048fa1fe166d0e123d61
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 24 04:58:55 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 24 04:58:55 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b05d4a0
7
8 sys-libs/compiler-rt: forward port nostartfiles fix
9
10 Bug: https://bugs.gentoo.org/862540
11 Bug: https://bugs.gentoo.org/862798
12 See: 8bb13b19b42601b8b57c5b1c2d64d1b0a04fede5
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 sys-libs/compiler-rt/compiler-rt-14.0.6-r1.ebuild | 1 +
16 sys-libs/compiler-rt/compiler-rt-15.0.0.9999.ebuild | 6 ++++--
17 sys-libs/compiler-rt/compiler-rt-15.0.0_rc2.ebuild | 6 ++++--
18 sys-libs/compiler-rt/compiler-rt-16.0.0.9999.ebuild | 6 ++++--
19 4 files changed, 13 insertions(+), 6 deletions(-)
20
21 diff --git a/sys-libs/compiler-rt/compiler-rt-14.0.6-r1.ebuild b/sys-libs/compiler-rt/compiler-rt-14.0.6-r1.ebuild
22 index c006ccddc481..7493e7480ff1 100644
23 --- a/sys-libs/compiler-rt/compiler-rt-14.0.6-r1.ebuild
24 +++ b/sys-libs/compiler-rt/compiler-rt-14.0.6-r1.ebuild
25 @@ -91,6 +91,7 @@ src_configure() {
26 # Avoiding -nostartfiles earlier on for bug #862540,
27 # and set available entry symbol for bug #862798.
28 nolib_flags+=( -nostartfiles -emain )
29 +
30 local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}"
31 ewarn "${CC} seems to lack runtime, trying with ${nolib_flags[*]}"
32 fi
33
34 diff --git a/sys-libs/compiler-rt/compiler-rt-15.0.0.9999.ebuild b/sys-libs/compiler-rt/compiler-rt-15.0.0.9999.ebuild
35 index 5063f18091f9..a7b7ace68705 100644
36 --- a/sys-libs/compiler-rt/compiler-rt-15.0.0.9999.ebuild
37 +++ b/sys-libs/compiler-rt/compiler-rt-15.0.0.9999.ebuild
38 @@ -88,8 +88,10 @@ src_configure() {
39 local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}"
40 ewarn "${CC} seems to lack runtime, trying with ${nolib_flags[*]}"
41 elif test_compiler "${nolib_flags[@]}" -nostartfiles; then
42 - # Avoiding -nostartfiles earlier on for bug #862540
43 - nolib_flags+=( -nostartfiles )
44 + # Avoiding -nostartfiles earlier on for bug #862540,
45 + # and set available entry symbol for bug #862798.
46 + nolib_flags+=( -nostartfiles -emain )
47 +
48 local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}"
49 ewarn "${CC} seems to lack runtime, trying with ${nolib_flags[*]}"
50 fi
51
52 diff --git a/sys-libs/compiler-rt/compiler-rt-15.0.0_rc2.ebuild b/sys-libs/compiler-rt/compiler-rt-15.0.0_rc2.ebuild
53 index d41092a0cf32..c01ed38975d1 100644
54 --- a/sys-libs/compiler-rt/compiler-rt-15.0.0_rc2.ebuild
55 +++ b/sys-libs/compiler-rt/compiler-rt-15.0.0_rc2.ebuild
56 @@ -88,8 +88,10 @@ src_configure() {
57 local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}"
58 ewarn "${CC} seems to lack runtime, trying with ${nolib_flags[*]}"
59 elif test_compiler "${nolib_flags[@]}" -nostartfiles; then
60 - # Avoiding -nostartfiles earlier on for bug #862540
61 - nolib_flags+=( -nostartfiles )
62 + # Avoiding -nostartfiles earlier on for bug #862540,
63 + # and set available entry symbol for bug #862798.
64 + nolib_flags+=( -nostartfiles -emain )
65 +
66 local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}"
67 ewarn "${CC} seems to lack runtime, trying with ${nolib_flags[*]}"
68 fi
69
70 diff --git a/sys-libs/compiler-rt/compiler-rt-16.0.0.9999.ebuild b/sys-libs/compiler-rt/compiler-rt-16.0.0.9999.ebuild
71 index 5063f18091f9..a7b7ace68705 100644
72 --- a/sys-libs/compiler-rt/compiler-rt-16.0.0.9999.ebuild
73 +++ b/sys-libs/compiler-rt/compiler-rt-16.0.0.9999.ebuild
74 @@ -88,8 +88,10 @@ src_configure() {
75 local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}"
76 ewarn "${CC} seems to lack runtime, trying with ${nolib_flags[*]}"
77 elif test_compiler "${nolib_flags[@]}" -nostartfiles; then
78 - # Avoiding -nostartfiles earlier on for bug #862540
79 - nolib_flags+=( -nostartfiles )
80 + # Avoiding -nostartfiles earlier on for bug #862540,
81 + # and set available entry symbol for bug #862798.
82 + nolib_flags+=( -nostartfiles -emain )
83 +
84 local -x LDFLAGS="${LDFLAGS} ${nolib_flags[*]}"
85 ewarn "${CC} seems to lack runtime, trying with ${nolib_flags[*]}"
86 fi