about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/ucarp/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/servers/ucarp/default.nix')
-rw-r--r--nixpkgs/pkgs/servers/ucarp/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/ucarp/default.nix b/nixpkgs/pkgs/servers/ucarp/default.nix
index 321a725cc89a..a3b02d493e2e 100644
--- a/nixpkgs/pkgs/servers/ucarp/default.nix
+++ b/nixpkgs/pkgs/servers/ucarp/default.nix
@@ -11,6 +11,12 @@ stdenv.mkDerivation rec {
 
   buildInputs = [ libpcap ];
 
+  # Workaround build failure on -fno-common toolchains like upstream
+  # gcc-10. Otherwise build fails as:
+  #   ld: daemonize.o:/build/ucarp-1.5.2/src/ip_carp.h:73: multiple definition of
+  #     `__packed'; ucarp.o:/build/ucarp-1.5.2/src/ip_carp.h:73: first defined here
+  NIX_CFLAGS_COMPILE = "-fcommon";
+
   meta = with lib; {
     description = "Userspace implementation of CARP";
     longDescription = ''