summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-07-29 03:06:05 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-07-29 03:06:05 +0100
commit66cd90d4284850abdf808a598a77040bcda88bd8 (patch)
tree3b4bd42297b8217b23f041cb09d7fe3832537e6c /eclass
parent9403c20e10161812ed5231e7fd14464ca484aa09 (diff)
gentoo auto-resync : 29:07:2022 - 03:06:05
Diffstat (limited to 'eclass')
-rw-r--r--eclass/Manifest.gzbin36970 -> 36968 bytes
-rw-r--r--eclass/tree-sitter-grammar.eclass10
2 files changed, 8 insertions, 2 deletions
diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz
index 49354b93bc1b..b246d25cdaf2 100644
--- a/eclass/Manifest.gz
+++ b/eclass/Manifest.gz
Binary files differ
diff --git a/eclass/tree-sitter-grammar.eclass b/eclass/tree-sitter-grammar.eclass
index 69ad467f8be7..acdb8a7ad73b 100644
--- a/eclass/tree-sitter-grammar.eclass
+++ b/eclass/tree-sitter-grammar.eclass
@@ -76,11 +76,17 @@ tree-sitter-grammar_src_compile() {
fi
local soname=lib${PN}$(get_libname $(_get_tsg_abi_ver))
+
+ local soname_args="-Wl,--soname=${soname}"
+ if [[ ${CHOST} == *darwin* ]] ; then
+ soname_args="-Wl,-install_name,${EPREFIX}/usr/$(get_libdir)/${soname}"
+ fi
+
edo ${link} ${LDFLAGS} \
-shared \
*.o \
- -Wl,--soname=${soname} \
- -o "${WORKDIR}"/${soname} || die
+ ${soname_args} \
+ -o "${WORKDIR}"/${soname}
}
# @FUNCTION: tree-sitter-grammar_src_install