Using fPIC in PERL when using an Intel compiler. (#3355)
This commit is contained in:
parent
d52ac82f95
commit
0c1441c3e3
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user