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

_9pfs: add -fcommon workaround
This commit is contained in:
Rick van Schijndel 2022-05-18 14:02:38 +02:00 committed by GitHub
commit 51c998bdd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,6 +24,12 @@ stdenv.mkDerivation {
buildInputs = [ fuse ]; 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; enableParallelBuilding = true;
meta = { meta = {