mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
Merge pull request #175246 from trofi/workaround-fno-common-for-sasquatch
sasquatch: add -fcommon workaround
This commit is contained in:
commit
2dd45b41c5
1 changed files with 6 additions and 0 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue