build script: skip testing step of bzip2 target

This commit is contained in:
alexey.lysiuk 2020-12-25 12:53:26 +02:00
parent 5cd25a6312
commit e007118a87

View file

@ -620,9 +620,13 @@ class Bzip2Target(MakeTarget):
def configure(self, builder: 'Builder'):
super().configure(builder)
opts = self.options
# Add explicit targets in order to skip testing step that is incompatible with cross-compilation
opts['bzip2'] = None
opts['bzip2recover'] = None
# Copy compiler flags from environment to command line argument, they would be overridden by Makefile otherwise
cflags = 'CFLAGS'
self.options[cflags] = self.environment[cflags] + ' -D_FILE_OFFSET_BITS=64 -O2'
opts[cflags] = self.environment[cflags] + ' -D_FILE_OFFSET_BITS=64 -O2'
def post_build(self, builder: 'Builder'):
self.options['PREFIX'] = self.prefix