summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMatthew Smith <matt@offtopica.uk>2021-12-20 17:32:15 +0000
committerNick Sarnie <sarnex@gentoo.org>2021-12-23 09:24:35 -0500
commit36fd27f6090b1cb0c96488b8f0e9b4fba5b9472d (patch)
tree9a83831493ec5df50ade41ddeff20e5e11289e29 /eclass
parentdev-libs/cereal: drop old (diff)
downloadgentoo-36fd27f6090b1cb0c96488b8f0e9b4fba5b9472d.tar.gz
gentoo-36fd27f6090b1cb0c96488b8f0e9b4fba5b9472d.tar.bz2
gentoo-36fd27f6090b1cb0c96488b8f0e9b4fba5b9472d.zip
tree-sitter-grammar.eclass: Fix compatibility with lld
-soname <soname> is only accepted by GNU ld, but --soname=<soname> is accepted by both GNU ld and LLVM lld. Closes: https://bugs.gentoo.org/829667 Closes: https://bugs.gentoo.org/829668 Closes: https://bugs.gentoo.org/829669 Closes: https://bugs.gentoo.org/829670 Closes: https://bugs.gentoo.org/829671 Closes: https://bugs.gentoo.org/829672 Closes: https://bugs.gentoo.org/829673 Closes: https://bugs.gentoo.org/829674 Closes: https://bugs.gentoo.org/829675 Closes: https://bugs.gentoo.org/829676 Closes: https://bugs.gentoo.org/829677 Signed-off-by: Matthew Smith <matt@offtopica.uk> Closes: https://github.com/gentoo/gentoo/pull/23436 Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/tree-sitter-grammar.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/tree-sitter-grammar.eclass b/eclass/tree-sitter-grammar.eclass
index 7207ecf3ddd7..10baa3c4adb6 100644
--- a/eclass/tree-sitter-grammar.eclass
+++ b/eclass/tree-sitter-grammar.eclass
@@ -77,7 +77,7 @@ tree-sitter-grammar_src_compile() {
${link} ${LDFLAGS} \
-shared \
*.o \
- -Wl,-soname ${soname} \
+ -Wl,--soname=${soname} \
-o "${WORKDIR}"/${soname} || die
}