summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToyohisa Kameyama <kameyama@riken.jp>2019-07-24 12:33:05 +0900
committerAdam J. Stewart <ajstewart426@gmail.com>2019-07-23 22:33:05 -0500
commita8b12f0cb6ee74f7cffe617e86261b2e11238573 (patch)
tree198b9a401ab0788041d8aa92000399a0ecfae09f
parentec2946163228c2be4432a92318e4146baf9b15fd (diff)
downloadspack-a8b12f0cb6ee74f7cffe617e86261b2e11238573.tar.gz
spack-a8b12f0cb6ee74f7cffe617e86261b2e11238573.tar.bz2
spack-a8b12f0cb6ee74f7cffe617e86261b2e11238573.tar.xz
spack-a8b12f0cb6ee74f7cffe617e86261b2e11238573.zip
rocksdb: Don't add -march=native on ARM and gcc 5.x or before. (#12108)
-rw-r--r--var/spack/repos/builtin/packages/rocksdb/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/rocksdb/package.py b/var/spack/repos/builtin/packages/rocksdb/package.py
index b850fe4356..f985208a14 100644
--- a/var/spack/repos/builtin/packages/rocksdb/package.py
+++ b/var/spack/repos/builtin/packages/rocksdb/package.py
@@ -34,6 +34,13 @@ class Rocksdb(MakefilePackage):
phases = ['install']
+ def patch(self):
+ if (self.spec.satisfies('target=aarch64 %gcc@:5.9')):
+ filter_file(
+ '-march=native', '',
+ join_path('build_tools', 'build_detect_platform')
+ )
+
def install(self, spec, prefix):
cflags = []
ldflags = []