From 01be6b457af58e5994e6c0a2d723e98d89a43e6d Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 20 Mar 2022 18:50:26 +0000 Subject: 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 --- sci-libs/superlu_mt/superlu_mt-3.1-r1.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sci-libs/superlu_mt') 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" -- cgit v1.2.3-65-gdbad