diff options
author | Jon Rood <jon.rood@nrel.gov> | 2017-03-04 06:50:38 -0700 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2017-03-04 07:50:38 -0600 |
commit | 0c1441c3e3f4dfaf1b0cd6c607efeddd7f55d454 (patch) | |
tree | 65045cde2c60c18ddffaf2bce2efc7a5ae386d7d | |
parent | d52ac82f95673f55599ed1c2fb3b007f97ff2f33 (diff) | |
download | spack-0c1441c3e3f4dfaf1b0cd6c607efeddd7f55d454.tar.gz spack-0c1441c3e3f4dfaf1b0cd6c607efeddd7f55d454.tar.bz2 spack-0c1441c3e3f4dfaf1b0cd6c607efeddd7f55d454.tar.xz spack-0c1441c3e3f4dfaf1b0cd6c607efeddd7f55d454.zip |
Using fPIC in PERL when using an Intel compiler. (#3355)
-rw-r--r-- | var/spack/repos/builtin/packages/perl/package.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/perl/package.py b/var/spack/repos/builtin/packages/perl/package.py index 45036f6810..4bacad427b 100644 --- a/var/spack/repos/builtin/packages/perl/package.py +++ b/var/spack/repos/builtin/packages/perl/package.py @@ -31,7 +31,7 @@ from spack import * -class Perl(Package): +class Perl(Package): # Perl doesn't use Autotools, it should subclass Package """Perl 5 is a highly capable, feature-rich programming language with over 27 years of development.""" homepage = "http://www.perl.org" @@ -63,7 +63,12 @@ class Perl(Package): def install(self, spec, prefix): configure = Executable('./Configure') - configure("-des", "-Dprefix=" + prefix) + configure_args = ["-des", "-Dprefix=" + prefix] + # Discussion of -fPIC for Intel at: + # https://github.com/LLNL/spack/pull/3081 + if spec.satisfies('%intel'): + configure_args.append("-Accflags=" + self.compiler.pic_flag) + configure(*configure_args) make() if self.run_tests: make("test") |