From: | Matthew Smith <matt@×××××××××.uk> |
---|---|
To: | gentoo-dev@l.g.o |
Subject: | [gentoo-dev] [PATCH] tree-sitter-grammar.eclass: Fix compatibility with lld |
Date: | Mon, 20 Dec 2021 17:36:06 |
Message-Id: | 4087ebec-879d-46c0-a132-821d76100e1d@www.fastmail.com |
1 | -soname <soname> is only accepted by GNU ld, but --soname=<soname> is |
2 | accepted by both GNU ld and LLVM lld. |
3 | |
4 | Closes: https://bugs.gentoo.org/828093 |
5 | Closes: https://bugs.gentoo.org/829668 |
6 | Closes: https://bugs.gentoo.org/829669 |
7 | Closes: https://bugs.gentoo.org/829670 |
8 | Closes: https://bugs.gentoo.org/829671 |
9 | Closes: https://bugs.gentoo.org/829672 |
10 | Closes: https://bugs.gentoo.org/829673 |
11 | Closes: https://bugs.gentoo.org/829674 |
12 | Closes: https://bugs.gentoo.org/829675 |
13 | Closes: https://bugs.gentoo.org/829676 |
14 | Closes: https://bugs.gentoo.org/829677 |
15 | Signed-off-by: Matthew Smith <matt@×××××××××.uk> |
16 | --- |
17 | eclass/tree-sitter-grammar.eclass | 2 +- |
18 | 1 file changed, 1 insertion(+), 1 deletion(-) |
19 | |
20 | diff --git a/eclass/tree-sitter-grammar.eclass b/eclass/tree-sitter-grammar.eclass |
21 | index 7207ecf3ddd7c..10baa3c4adb6c 100644 |
22 | --- a/eclass/tree-sitter-grammar.eclass |
23 | +++ b/eclass/tree-sitter-grammar.eclass |
24 | @@ -77,7 +77,7 @@ tree-sitter-grammar_src_compile() { |
25 | ${link} ${LDFLAGS} \ |
26 | -shared \ |
27 | *.o \ |
28 | - -Wl,-soname ${soname} \ |
29 | + -Wl,--soname=${soname} \ |
30 | -o "${WORKDIR}"/${soname} || die |
31 | } |