diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-29 03:06:05 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-29 03:06:05 +0100 |
commit | 66cd90d4284850abdf808a598a77040bcda88bd8 (patch) | |
tree | 3b4bd42297b8217b23f041cb09d7fe3832537e6c /eclass | |
parent | 9403c20e10161812ed5231e7fd14464ca484aa09 (diff) |
gentoo auto-resync : 29:07:2022 - 03:06:05
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/Manifest.gz | bin | 36970 -> 36968 bytes | |||
-rw-r--r-- | eclass/tree-sitter-grammar.eclass | 10 |
2 files changed, 8 insertions, 2 deletions
diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz Binary files differindex 49354b93bc1b..b246d25cdaf2 100644 --- a/eclass/Manifest.gz +++ b/eclass/Manifest.gz 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 |