summary refs log tree commit diff
path: root/pkgs/tools/filesystems/sasquatch
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2022-05-29 07:05:53 +0100
committerSergei Trofimovich <slyich@gmail.com>2022-05-29 07:06:12 +0100
commitad5f9ad8927605e224317b210a1ae0f7d91fb30f (patch)
treed39fca9230318ef3bd91a65a02d2e89479c92b76 /pkgs/tools/filesystems/sasquatch
parent0831857a140328c5c40be233eaa73130620a44b2 (diff)
downloadnixpkgs-ad5f9ad8927605e224317b210a1ae0f7d91fb30f.tar
nixpkgs-ad5f9ad8927605e224317b210a1ae0f7d91fb30f.tar.gz
nixpkgs-ad5f9ad8927605e224317b210a1ae0f7d91fb30f.tar.bz2
nixpkgs-ad5f9ad8927605e224317b210a1ae0f7d91fb30f.tar.lz
nixpkgs-ad5f9ad8927605e224317b210a1ae0f7d91fb30f.tar.xz
nixpkgs-ad5f9ad8927605e224317b210a1ae0f7d91fb30f.tar.zst
nixpkgs-ad5f9ad8927605e224317b210a1ae0f7d91fb30f.zip
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
Diffstat (limited to 'pkgs/tools/filesystems/sasquatch')
-rw-r--r--pkgs/tools/filesystems/sasquatch/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/sasquatch/default.nix b/pkgs/tools/filesystems/sasquatch/default.nix
index 017fda14cc6..ba5fd9ccfc1 100644
--- a/pkgs/tools/filesystems/sasquatch/default.nix
+++ b/pkgs/tools/filesystems/sasquatch/default.nix
@@ -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 = [