Merge pull request #176122 from trofi/workaround-fno-common-for-xbursttools

xbursttools: add -fcommon workaround
This commit is contained in:
Sandro 2022-06-03 17:01:15 +02:00 committed by GitHub
commit e6e8d96962
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,6 +19,11 @@ stdenv.mkDerivation {
sh autogen.sh
'';
# Workaround build failure on -fno-common toolchains:
# mipsel-unknown-linux-uclibc-ld: boothandler.o:(.bss+0x8): multiple definition of
# `start_addr'; main.o:(.bss+0x8): first defined here
NIX_CFLAGS_COMPILE_FOR_TARGET = "-fcommon";
configureFlags = lib.optionals (gccCross != null) [
"--enable-firmware"
"CROSS_COMPILE=${gccCross.targetPrefix}"