webos.novacomd: add -fcommon workaround
Workaround build failure on -fno-common toolchains like upstream gcc-10. Otherwise build fails as: ld: src/host/usb-linux.c:82: multiple definition of `t_recovery_queue'; src/host/recovery.c:45: first defined here
This commit is contained in:
parent
236cc2971a
commit
c0d4a1bfe4
1 changed files with 5 additions and 0 deletions
|
@ -29,6 +29,11 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [ libusb-compat-0_1 ];
|
||||
|
||||
# Workaround build failure on -fno-common toolchains:
|
||||
# ld: src/host/usb-linux.c:82: multiple definition of `t_recovery_queue';
|
||||
# src/host/recovery.c:45: first defined here
|
||||
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||
|
||||
cmakeFlags = [ "-DWEBOS_TARGET_MACHINE_IMPL=host" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue