rocksdb: Don't add -march=native on ARM and gcc 5.x or before. (#12108)
This commit is contained in:
parent
ec29461632
commit
a8b12f0cb6
1 changed files with 7 additions and 0 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Reference in a new issue