rocksdb: Don't add -march=native on ARM and gcc 5.x or before. (#12108)

This commit is contained in:
Toyohisa Kameyama 2019-07-24 12:33:05 +09:00 committed by Adam J. Stewart
parent ec29461632
commit a8b12f0cb6

View file

@ -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 = []