From 09b9e3c609239cd7d97dc3c46ba4d44011144293 Mon Sep 17 00:00:00 2001 From: Pietro Incardona <incardon@mpi-cbg.de> Date: Sun, 18 Dec 2016 00:49:17 +0100 Subject: [PATCH] Fixing installation of PETSC on osx --- script/install_PETSC.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/install_PETSC.sh b/script/install_PETSC.sh index 39c4bca32..b599b55cc 100755 --- a/script/install_PETSC.sh +++ b/script/install_PETSC.sh @@ -239,7 +239,7 @@ if [ ! -d "$1/SUPERLU_DIST" ]; then $sed_command -i "/CC\s\+=\scc/c\CC = mpicc" make.inc $sed_command -i "/FORTRAN\s\+=\sftn/c\FORTRAN = mpif90" make.inc - if [ x"$dgc_compiler" == x"clang++" ]; then + if [ x"$CXX" == x"clang++" ]; then $sed_command -i "/CFLAGS\s\+=\s-fast\s-m64\s-std=c99\s-Wall\s-openmp\s\\\/c\CFLAGS =-fpic -O3 -m64 -std=c99 -Wall \$(I_PARMETIS) -DDEBUGlevel=0 -DPRNTlevel=0 -DPROFlevel=0" make.inc else $sed_command -i "/CFLAGS\s\+=\s-fast\s-m64\s-std=c99\s-Wall\s-openmp\s\\\/c\CFLAGS =-fpic -O3 -m64 -std=c99 -Wall -fopenmp \$(I_PARMETIS) -DDEBUGlevel=0 -DPRNTlevel=0 -DPROFlevel=0" make.inc -- GitLab