1 |
commit: 5f0fc09e53bfe231a41647ae29fd6bd495c4ed98 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 23 13:20:48 2021 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 23 13:48:39 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f0fc09e |
7 |
|
8 |
net-libs/nodejs: filter out user-defined LTO flags |
9 |
|
10 |
Node build scripts insert user-defined compiler/linker flags after the |
11 |
ones they define themselves, meaning that user-defined -flto |
12 |
can override the -fno-lto set for v8_cppgc_shared - triggering build |
13 |
errors. |
14 |
|
15 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
16 |
|
17 |
net-libs/nodejs/nodejs-12.22.1-r1.ebuild | 5 ++++- |
18 |
net-libs/nodejs/nodejs-14.16.1-r1.ebuild | 5 ++++- |
19 |
net-libs/nodejs/nodejs-16.0.0-r1.ebuild | 5 ++++- |
20 |
3 files changed, 12 insertions(+), 3 deletions(-) |
21 |
|
22 |
diff --git a/net-libs/nodejs/nodejs-12.22.1-r1.ebuild b/net-libs/nodejs/nodejs-12.22.1-r1.ebuild |
23 |
index b9181293ba3..aa8392c1ff2 100644 |
24 |
--- a/net-libs/nodejs/nodejs-12.22.1-r1.ebuild |
25 |
+++ b/net-libs/nodejs/nodejs-12.22.1-r1.ebuild |
26 |
@@ -6,7 +6,7 @@ EAPI=7 |
27 |
PYTHON_COMPAT=( python3_{7..9} ) |
28 |
PYTHON_REQ_USE="threads(+)" |
29 |
|
30 |
-inherit bash-completion-r1 pax-utils python-any-r1 toolchain-funcs xdg-utils |
31 |
+inherit bash-completion-r1 flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils |
32 |
|
33 |
DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" |
34 |
HOMEPAGE="https://nodejs.org/" |
35 |
@@ -105,6 +105,9 @@ src_prepare() { |
36 |
src_configure() { |
37 |
xdg_environment_reset |
38 |
|
39 |
+ # LTO compiler flags are handled by configure.py itself |
40 |
+ filter-flags '-flto*' |
41 |
+ |
42 |
local myconf=( |
43 |
--shared-brotli |
44 |
--shared-cares |
45 |
|
46 |
diff --git a/net-libs/nodejs/nodejs-14.16.1-r1.ebuild b/net-libs/nodejs/nodejs-14.16.1-r1.ebuild |
47 |
index 481182d7756..02e8c08318b 100644 |
48 |
--- a/net-libs/nodejs/nodejs-14.16.1-r1.ebuild |
49 |
+++ b/net-libs/nodejs/nodejs-14.16.1-r1.ebuild |
50 |
@@ -6,7 +6,7 @@ EAPI=7 |
51 |
PYTHON_COMPAT=( python3_{7..9} ) |
52 |
PYTHON_REQ_USE="threads(+)" |
53 |
|
54 |
-inherit bash-completion-r1 pax-utils python-any-r1 toolchain-funcs xdg-utils |
55 |
+inherit bash-completion-r1 flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils |
56 |
|
57 |
DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" |
58 |
HOMEPAGE="https://nodejs.org/" |
59 |
@@ -103,6 +103,9 @@ src_prepare() { |
60 |
src_configure() { |
61 |
xdg_environment_reset |
62 |
|
63 |
+ # LTO compiler flags are handled by configure.py itself |
64 |
+ filter-flags '-flto*' |
65 |
+ |
66 |
local myconf=( |
67 |
--shared-brotli |
68 |
--shared-cares |
69 |
|
70 |
diff --git a/net-libs/nodejs/nodejs-16.0.0-r1.ebuild b/net-libs/nodejs/nodejs-16.0.0-r1.ebuild |
71 |
index 612a576994a..e9e14a67345 100644 |
72 |
--- a/net-libs/nodejs/nodejs-16.0.0-r1.ebuild |
73 |
+++ b/net-libs/nodejs/nodejs-16.0.0-r1.ebuild |
74 |
@@ -6,7 +6,7 @@ EAPI=7 |
75 |
PYTHON_COMPAT=( python3_{7..9} ) |
76 |
PYTHON_REQ_USE="threads(+)" |
77 |
|
78 |
-inherit bash-completion-r1 pax-utils python-any-r1 toolchain-funcs xdg-utils |
79 |
+inherit bash-completion-r1 flag-o-matic pax-utils python-any-r1 toolchain-funcs xdg-utils |
80 |
|
81 |
DESCRIPTION="A JavaScript runtime built on Chrome's V8 JavaScript engine" |
82 |
HOMEPAGE="https://nodejs.org/" |
83 |
@@ -102,6 +102,9 @@ src_prepare() { |
84 |
src_configure() { |
85 |
xdg_environment_reset |
86 |
|
87 |
+ # LTO compiler flags are handled by configure.py itself |
88 |
+ filter-flags '-flto*' |
89 |
+ |
90 |
local myconf=( |
91 |
--shared-brotli |
92 |
--shared-cares |