1 libxfs: do not try to run the crc32selftest
3 Even though the crc32selftest is natively compiled (because it is to be
4 executed), it fails in cross-compilation as the host may lack the
5 required headers, like uuid/uuid.h (e.g. in a minimal environment).
7 Moreover, running the crc32selftest natively is completely wrong,
8 because it passing on the host does not mean it would still pass n the
9 target (because endianness or bitness or alignment differences).
11 So, just disable running the crc32selftest altogether.
13 Note that there's a remaining bug-in-hiding, because the crc32 table
14 generator is natively built, but with the target CFLAGS.
16 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
18 diff -durN xfsprogs-4.3.0.orig/libxfs/Makefile xfsprogs-4.3.0/libxfs/Makefile
19 --- xfsprogs-4.3.0.orig/libxfs/Makefile 2015-09-22 03:42:41.000000000 +0200
20 +++ xfsprogs-4.3.0/libxfs/Makefile 2015-12-07 18:45:27.190082913 +0100
22 # don't try linking xfs_repair with a debug libxfs.
25 -LDIRT = gen_crc32table crc32table.h crc32selftest
26 +LDIRT = gen_crc32table crc32table.h
28 -default: crc32selftest ltdepend $(LTLIBRARY)
29 +default: ltdepend $(LTLIBRARY)
31 crc32table.h: gen_crc32table.c
32 @echo " [CC] gen_crc32table"