variorum: update package for CCE (#29656)

CCE needs additional compiler flags.
This commit is contained in:
luker 2022-03-23 03:19:01 -05:00 committed by GitHub
parent 49498af9ec
commit 5afdccba06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,6 +54,11 @@ def cmake_args(self):
cmake_args.append('-DJANSSON_DIR={0}'.format(spec['jansson'].prefix))
if spec.satisfies('%cce'):
cmake_args.append('-DCMAKE_C_FLAGS=-fcommon')
cmake_args.append('-DCMAKE_CCC_FLAGS=-fcommon')
cmake_args.append('-DCMAKE_Fortran_FLAGS=-ef')
if "+shared" in spec:
cmake_args.append("-DBUILD_SHARED_LIBS=ON")
else: