sasquatch: add -fcommon workaround

Workaround build failure on -fno-common toolchains like upstream
gcc-10. Otherwise build fails as:

    ld: unsquashfs_xattr.o:/build/squashfs4.4/squashfs-tools/error.h:34: multiple definition of
      `verbose'; unsquashfs.o:/build/squashfs4.4/squashfs-tools/error.h:34: first defined here
This commit is contained in:
Sergei Trofimovich 2022-05-29 07:05:53 +01:00
parent 0831857a14
commit ad5f9ad892

View File

@ -49,6 +49,12 @@ stdenv.mkDerivation rec {
cd squashfs-tools
'';
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: unsquashfs_xattr.o:/build/squashfs4.4/squashfs-tools/error.h:34: multiple definition of
# `verbose'; unsquashfs.o:/build/squashfs4.4/squashfs-tools/error.h:34: first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
installFlags = [ "INSTALL_DIR=\${out}/bin" ];
makeFlags = [