diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2022-06-03 15:20:21 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2022-06-03 15:21:03 +0100 |
commit | f783fcba13fcc759ce010ae4c6994783f3e806ba (patch) | |
tree | 3aa4ae7cbcc0b2eb937cb89df73153f762001285 /pkgs/tools/misc/xburst-tools | |
parent | 236cc2971ac72acd90f0ae3a797f9f83098b17ec (diff) |
xbursttools: add -fcommon workaround
Workaround build failure on -fno-common toolchains like upstream gcc-10. Otherwise build fails as: mipsel-unknown-linux-uclibc-ld: boothandler.o:(.bss+0x8): multiple definition of `start_addr'; main.o:(.bss+0x8): first defined here
Diffstat (limited to 'pkgs/tools/misc/xburst-tools')
-rw-r--r-- | pkgs/tools/misc/xburst-tools/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/tools/misc/xburst-tools/default.nix b/pkgs/tools/misc/xburst-tools/default.nix index 9ac031309948d..e850e347b29a6 100644 --- a/pkgs/tools/misc/xburst-tools/default.nix +++ b/pkgs/tools/misc/xburst-tools/default.nix @@ -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}" |