diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2022-05-10 07:35:37 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2022-05-10 07:35:37 +0100 |
commit | 32bed4c4554220f0ece456d4f3662fc81fafd14b (patch) | |
tree | a2a248bdafc1af30a33ef1a9e4d16369886ee07e /pkgs/tools/filesystems/afpfs-ng | |
parent | 375fc4644cb4cb263233bde8b5b4eff1e692359b (diff) |
afpfs-ng: add -fcommon workaround
Without the change -fno-common toolchains like upstream gcc-10 fail to build as: ld: afpcmd-cmdline_main.o:/build/source/cmdline/cmdline_afp.h:4: multiple definition of `full_url'; afpcmd-cmdline_afp.o:/build/source/cmdline/cmdline_afp.c:27: first defined here
Diffstat (limited to 'pkgs/tools/filesystems/afpfs-ng')
-rw-r--r-- | pkgs/tools/filesystems/afpfs-ng/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/afpfs-ng/default.nix b/pkgs/tools/filesystems/afpfs-ng/default.nix index 9c4268e402dad..b56bfba62cd4f 100644 --- a/pkgs/tools/filesystems/afpfs-ng/default.nix +++ b/pkgs/tools/filesystems/afpfs-ng/default.nix @@ -11,6 +11,12 @@ stdenv.mkDerivation { sha256 = "125jx1rsqkiifcffyjb05b2s36rllckdgjaf1bay15k9gzhwwldz"; }; + # Add workaround for -fno-common toolchains like upstream gcc-10 to + # avoid build failures like: + # ld: afpcmd-cmdline_main.o:/build/source/cmdline/cmdline_afp.h:4: multiple definition of + # `full_url'; afpcmd-cmdline_afp.o:/build/source/cmdline/cmdline_afp.c:27: first defined here + NIX_CFLAGS_COMPILE = "-fcommon"; + buildInputs = [ fuse readline libgcrypt gmp ]; meta = with lib; { |