Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
squashfs-tools: fix build failure against gcc-10
On gcc-10 (and gcc-9 -fno-common) build fails as: ``` cc ... -o mksquashfs ld: read_fs.o:(.bss+0x0): multiple definition of `fwriter_buffer'; mksquashfs.o:(.bss+0x400c90): first defined here ld: read_fs.o:(.bss+0x8): multiple definition of `bwriter_buffer'; mksquashfs.o:(.bss+0x400c98): first defined here ``` gcc-10 will change the default from -fcommon to fno-common: https://gcc.gnu.org/PR85678. The error also happens if CFLAGS=-fno-common passed explicitly. Reported-by: Toralf Förster Bug: https://bugs.gentoo.org/706456 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
- Loading branch information