1 Disable bzip2 tests when cross compiling on Windows to avoid this error:
3 > Doing 6 tests (3 compress, 3 uncompress) ...
4 > If there's a problem, things might stop at this point.
6 > .\\bzip2 -1 < sample1.ref > sample1.rb2
7 > This version of C:\sources\libo-core\workdir\UnpackedTarball\bzip2\bzip2.exe is not compatible with the version of Windows you're running.
8 > Check your computer's system information and then contact the software publisher.
9 > NMAKE : fatal error U1077: '.\\bzip2' : return code '0x1'
12 --- makefile.msc.orig 2019-07-14 02:50:05.000000000 +0900
13 +++ makefile.msc 2023-09-20 20:00:14.124370100 +0900
22 $(CC) $(CFLAGS) -o bzip2 bzip2.c libbz2.lib setargv.obj
25 lib /out:libbz2.lib $(OBJS)
29 - .\\bzip2 -1 < sample1.ref > sample1.rb2
30 - .\\bzip2 -2 < sample2.ref > sample2.rb2
31 - .\\bzip2 -3 < sample3.ref > sample3.rb2
32 - .\\bzip2 -d < sample1.bz2 > sample1.tst
33 - .\\bzip2 -d < sample2.bz2 > sample2.tst
34 - .\\bzip2 -ds < sample3.bz2 > sample3.tst
35 - @echo All six of the fc's should find no differences.
36 - @echo If fc finds an error on sample3.bz2, this could be
37 - @echo because WinZip's 'TAR file smart CR/LF conversion'
38 - @echo is too clever for its own good. Disable this option.
39 - @echo The correct size for sample3.ref is 120,244. If it
40 - @echo is 150,251, WinZip has messed it up.
41 - fc sample1.bz2 sample1.rb2
42 - fc sample2.bz2 sample2.rb2
43 - fc sample3.bz2 sample3.rb2
44 - fc sample1.tst sample1.ref
45 - fc sample2.tst sample2.ref
46 - fc sample3.tst sample3.ref