From ae23f33a31bfbb8b83ba6c73d97635de1ebd75ec Mon Sep 17 00:00:00 2001 From: ketsubouchi <67359246+ketsubouchi@users.noreply.github.com> Date: Thu, 13 Aug 2020 10:16:59 +0900 Subject: eztrace: add space, --linkfortran, -Wl (#17801) --- var/spack/repos/builtin/packages/eztrace/package.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/var/spack/repos/builtin/packages/eztrace/package.py b/var/spack/repos/builtin/packages/eztrace/package.py index ddf9808f7b..f73087de99 100644 --- a/var/spack/repos/builtin/packages/eztrace/package.py +++ b/var/spack/repos/builtin/packages/eztrace/package.py @@ -21,6 +21,26 @@ class Eztrace(AutotoolsPackage): # Does not work on Darwin due to MAP_POPULATE conflicts('platform=darwin') + def patch(self): + filter_file( + '"DEFAULT_OUTFILE"', + '" DEFAULT_OUTFILE "', + 'extlib/gtg/extlib/otf/tools/otfshrink/otfshrink.cpp', + string=True + ) + + def setup_build_environment(self, env): + if self.spec.satisfies('%fj'): + env.set('LDFLAGS', '--linkfortran') + def configure_args(self): args = ["--with-mpi={0}".format(self.spec["mpi"].prefix)] return args + + @run_before('build') + def fix_libtool(self): + if self.spec.satisfies('%fj'): + libtools = ['extlib/gtg/libtool', + 'extlib/opari2/build-frontend/libtool'] + for f in libtools: + filter_file('wl=""', 'wl="-Wl,"', f, string=True) -- cgit v1.2.3-70-g09d2