From 0f98cf03988a53505fccb22971a4b10e37e3ee48 Mon Sep 17 00:00:00 2001 From: t-karatsu <49965247+t-karatsu@users.noreply.github.com> Date: Thu, 25 Jul 2019 02:32:49 +0900 Subject: [PATCH] Perl take in flags (#12112) * perl: perl package takes in spack cflags. * fix for flake8 test. --- var/spack/repos/builtin/packages/perl/package.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/var/spack/repos/builtin/packages/perl/package.py b/var/spack/repos/builtin/packages/perl/package.py index 1825832644..2d1ed46f87 100644 --- a/var/spack/repos/builtin/packages/perl/package.py +++ b/var/spack/repos/builtin/packages/perl/package.py @@ -239,6 +239,11 @@ def filter_config_dot_pm(self): substitute = "ld='{ld}'".format(ld=self.compiler.cc) filter_file(match, substitute, config_heavy, **kwargs) + match = "^ccflags='" + substitute = "ccflags='%s " % ' '\ + .join(self.spec.compiler_flags['cflags']) + filter_file(match, substitute, config_heavy, **kwargs) + @contextmanager def make_briefly_writable(self, path): """Temporarily make a file writable, then reset"""