Merge pull request #173009 from trofi/workaround-fno-common-for-_9pfs

_9pfs: add -fcommon workaround
main
Rick van Schijndel 2 years ago committed by GitHub
commit 51c998bdd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      pkgs/tools/filesystems/9pfs/default.nix

@ -24,6 +24,12 @@ stdenv.mkDerivation {
buildInputs = [ fuse ];
# Workaround build failure on -fno-common toolchains like upstream
# gcc-10. Otherwise build fails as:
# ld: lib/auth_rpc.o:/build/source/lib/../9pfs.h:35: multiple definition of
# `logfile'; 9pfs.o:/build/source/9pfs.h:35: first defined here
NIX_CFLAGS_COMPILE = "-fcommon";
enableParallelBuilding = true;
meta = {

Loading…
Cancel
Save