dibbler: add -fcommon workaround
Workaround build failure on -fno-common toolchains like upstream gcc-10. Otherwise build fails as: ld: listindex.o:/build/btar-1.1.1/loadindex.h:12: multiple definition of `ptr'; main.o:/build/btar-1.1.1/loadindex.h:12: first defined here
This commit is contained in:
parent
2d584efc06
commit
579d1c7a39
|
@ -13,7 +13,11 @@ stdenv.mkDerivation rec {
|
||||||
"--enable-resolvconf"
|
"--enable-resolvconf"
|
||||||
];
|
];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-D__APPLE_USE_RFC_2292=1";
|
# -fcommon: Workaround build failure on -fno-common toolchains like upstream
|
||||||
|
# gcc-10. Otherwise build fails as:
|
||||||
|
# ld: ./Port-linux/libLowLevel.a(libLowLevel_a-interface.o):(.bss+0x4): multiple definition of `interface_auto_up';
|
||||||
|
# ./Port-linux/libLowLevel.a(libLowLevel_a-lowlevel-linux-link-state.o):(.bss+0x74): first defined here
|
||||||
|
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-D__APPLE_USE_RFC_2292=1" + " -fcommon";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Portable DHCPv6 implementation";
|
description = "Portable DHCPv6 implementation";
|
||||||
|
|
Loading…
Reference in a new issue