diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2022-05-22 18:19:24 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2022-05-22 18:19:48 +0100 |
commit | 7520e84ec2830fe889b538a00415ae7a0ce2452e (patch) | |
tree | 9541503fa58d5295742a33f50e0f79cc67c660c7 /pkgs/servers | |
parent | e04ca593173bc086a1fa195258090aaab9279f1f (diff) |
openbgpd: add -fcommon workaround
Workaround build failure on -fno-common toolchains like upstream gcc-10. Otherwise build fails as: ld: bgpd-rde_peer.o:/build/source/src/bgpd/bgpd.h:133: multiple definition of `bgpd_process'; bgpd-bgpd.o:/build/source/src/bgpd/bgpd.h:133: first defined here
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/openbgpd/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/servers/openbgpd/default.nix b/pkgs/servers/openbgpd/default.nix index 20b8699aef54c..dc39a81dccffc 100644 --- a/pkgs/servers/openbgpd/default.nix +++ b/pkgs/servers/openbgpd/default.nix @@ -35,6 +35,12 @@ in stdenv.mkDerivation rec { ./autogen.sh ''; + # Workaround build failure on -fno-common toolchains like upstream + # gcc-10. Otherwise build fails as: + # ld: bgpd-rde_peer.o:/build/source/src/bgpd/bgpd.h:133: multiple definition of `bgpd_process'; + # bgpd-bgpd.o:/build/source/src/bgpd/bgpd.h:133: first defined here + NIX_CFLAGS_COMPILE = "-fcommon"; + meta = with lib; { description = "A free implementation of the Border Gateway Protocol, Version 4. It allows ordinary machines to be used as routers exchanging routes with other systems speaking the BGP protocol"; |