From: Jonas Rakebrandt <[email protected]>
Signed-off-by: Jonas Rakebrandt <[email protected]>
Part-of: https://bugs.gentoo.org/948500
Closes: https://bugs.gentoo.org/948500
Signed-off-by: Michał Górny <[email protected]>
---
eclass/llvm-r2.eclass | 1 +
1 file changed, 1 insertion(+)
diff --git a/eclass/llvm-r2.eclass b/eclass/llvm-r2.eclass
index 57018edc6819b..3fc52e6b11c8a 100644
--- a/eclass/llvm-r2.eclass
+++ b/eclass/llvm-r2.eclass
@@ -275,6 +275,7 @@ generate_llvm_config() {
# major + suffix
local shlib_name=LLVM-${version%%.*}
[[ ${version} == *git* ]] && shlib_name+="git${version##*git}"
+ [[ ${version} == *+* && ${shlib_name} != *+* ]] &&
shlib_name+="+${version##*+}"
local components=(
"${libs[@]#LLVM}" "${targets[@]}"