mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-22 05:19:00 +02:00
spaceFM: add -fcommon workaround
Workaround build failure on -fno-common toolchains like upstream gcc-10. Otherwise build fails as: ld: spacefm-item-prop.o:src/settings.h:123: multiple definition of `xsets'; vfs/spacefm-vfs-file-info.o:src/settings.h:123: first defined here
This commit is contained in:
parent
fdf46783c7
commit
ae2d827806
|
@ -21,6 +21,13 @@ stdenv.mkDerivation rec {
|
|||
./x11-only.patch
|
||||
];
|
||||
|
||||
# Workaround build failure on -fno-common toolchains:
|
||||
# ld: spacefm-item-prop.o:src/settings.h:123: multiple definition of
|
||||
# `xsets'; vfs/spacefm-vfs-file-info.o:src/settings.h:123: first defined here
|
||||
# TODO: can be removed once https://github.com/IgnorantGuru/spacefm/pull/772
|
||||
# or equivalent is merged upstream.
|
||||
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||
|
||||
configureFlags = [
|
||||
"--with-bash-path=${pkgs.bash}/bin/bash"
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue