sz: Change optimization flags for Fujitsu compiler (#14007)

This commit is contained in:
t-karatsu 2019-12-07 03:05:16 +09:00 committed by Adam J. Stewart
parent 67e45096c8
commit 246799d4ce
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--- spack-src/configure.org 2019-12-05 10:58:07.408584611 +0900
+++ spack-src/configure 2019-12-05 10:58:29.670909716 +0900
@@ -3019,7 +3019,7 @@
# Checks for programs.
-: ${CFLAGS=-O3 -std=c99 -Wall}
+: ${CFLAGS=-O2 -std=c99 -Wall}
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'

View file

@ -35,6 +35,10 @@ class Sz(AutotoolsPackage):
variant('fortran', default=False,
description='Enable fortran compilation')
# Part of latest sources don't support -O3 optimization
# with Fujitsu compiler.
patch('fix_optimization.patch', when='@2.0.2.0:%fj')
def configure_args(self):
args = []
if '+fortran' in self.spec: