diff --git a/components/parallel-libs/hypre/SPECS/hypre.spec b/components/parallel-libs/hypre/SPECS/hypre.spec index 41527034df..e6845e3063 100644 --- a/components/parallel-libs/hypre/SPECS/hypre.spec +++ b/components/parallel-libs/hypre/SPECS/hypre.spec @@ -68,11 +68,11 @@ module load openblas %endif %if "%{compiler_family}" == "arm1" - optflags="-O3 -fsimdmath" +export CFLAGS="${CFLAGS} -fsimdmath" %endif -FLAGS="%optflags -fPIC -Dhypre_dgesvd=dgesvd_ -Dhypre_dlamch=dlamch_ -Dhypre_blas_lsame=hypre_lapack_lsame -Dhypre_blas_xerbla=hypre_lapack_xerbla " +FLAGS="${CFLAGS} -fPIC -Dhypre_dgesvd=dgesvd_ -Dhypre_dlamch=dlamch_ -Dhypre_blas_lsame=hypre_lapack_lsame -Dhypre_blas_xerbla=hypre_lapack_xerbla " cd src ./configure \ --prefix=%{install_path} \