summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorToyohisa Kameyama <kameyama@riken.jp>2019-07-03 02:42:06 +0900
committerPeter Scheibel <scheibel1@llnl.gov>2019-07-02 10:42:06 -0700
commitf1592e339dd482c788a8b82b7c5935bde539f2d9 (patch)
tree992cfdb750ca5f379e654244393c6da56adee39b /var
parent2709f948faf8f5296c40f4b8a4a942fa9ad9200f (diff)
downloadspack-f1592e339dd482c788a8b82b7c5935bde539f2d9.tar.gz
spack-f1592e339dd482c788a8b82b7c5935bde539f2d9.tar.bz2
spack-f1592e339dd482c788a8b82b7c5935bde539f2d9.tar.xz
spack-f1592e339dd482c788a8b82b7c5935bde539f2d9.zip
portcullis package: remove -m64 on aarch64. (#11905)
GCC on aarch64 dose not support -m64. This patch removes the -m64 flag if target is aarch64.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/portcullis/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/portcullis/package.py b/var/spack/repos/builtin/packages/portcullis/package.py
index aded91acdc..20b20cfbd6 100644
--- a/var/spack/repos/builtin/packages/portcullis/package.py
+++ b/var/spack/repos/builtin/packages/portcullis/package.py
@@ -45,6 +45,11 @@ class Portcullis(AutotoolsPackage):
'scripts/Makefile.am', string=True
)
+ # remove -m64 on aarch64
+ if self.spec.satisfies('target=aarch64'):
+ for f in ['lib/Makefile.am', 'src/Makefile.am']:
+ filter_file('-m64', '', f)
+
def build(self, spec, prefix):
# build manpages
make('man')