Merge pull request #175192 from trofi/workaround-fno-common-for-rockbox-utility

rockbox-utility: add -fcommon workaround
This commit is contained in:
Anderson Torres 2022-05-28 20:15:35 -03:00 committed by GitHub
commit 413383e9ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,6 +43,13 @@ stdenv.mkDerivation rec {
lrelease rbutilqt.pro lrelease rbutilqt.pro
''; '';
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: libmkimxboot.a(elf.c.o):utils/imxtools/sbtools/misc.h:43: multiple definition of `g_nr_keys';
# libmkimxboot.a(mkimxboot.c.o):utils/imxtools/sbtools/misc.h:43: first defined here
# TODO: try to remove with 1.5.1 update.
NIX_CFLAGS_COMPILE = "-fcommon";
installPhase = '' installPhase = ''
runHook preInstall runHook preInstall