commit:     01be6b457af58e5994e6c0a2d723e98d89a43e6d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 20 18:50:26 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Mar 20 18:51:28 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01be6b45

sci-libs/superlu_mt: [QA] fix tc-get* quoting

This can cause build problems for e.g. 32-bit (gcc -m32 ...)

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/superlu_mt/superlu_mt-3.1-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sci-libs/superlu_mt/superlu_mt-3.1-r1.ebuild 
b/sci-libs/superlu_mt/superlu_mt-3.1-r1.ebuild
index 631f199b5ca3..ec84973ee7d0 100644
--- a/sci-libs/superlu_mt/superlu_mt-3.1-r1.ebuild
+++ b/sci-libs/superlu_mt/superlu_mt-3.1-r1.ebuild
@@ -33,12 +33,12 @@ PATCHES=(
 
 pkg_setup() {
        if use openmp && ! use threads; then
-               if [[ $(tc-getCC) == *gcc ]] && ! tc-has-openmp; then
+               if [[ "$(tc-getCC)" == *gcc ]] && ! tc-has-openmp; then
                        ewarn "OpenMP is not available in your current selected 
gcc"
                        die "need openmp capable gcc"
                fi
                CTHREADS="-D__OPENMP"
-               [[ $(tc-getCC) == *gcc ]] && LDTHREADS="-fopenmp"
+               [[ "$(tc-getCC)" == *gcc ]] && LDTHREADS="-fopenmp"
        else
                CTHREADS="-D__PTHREAD"
                LDTHREADS="-pthread"

Reply via email to