From e007118a872d37d207fa4e3e7ba06350ff31c370 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Fri, 25 Dec 2020 12:53:26 +0200 Subject: [PATCH] build script: skip testing step of bzip2 target --- build.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index d4e608fd..30a5ec38 100755 --- a/build.py +++ b/build.py @@ -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