mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
Merge pull request #176070 from trofi/workaround-fno-common-for-xe-guest-utilities
This commit is contained in:
commit
6daa6cabc9
@ -20,6 +20,11 @@ stdenv.mkDerivation (rec {
|
||||
tar xf "$NIX_BUILD_TOP/$name/xenstore-sources.tar.bz2"
|
||||
'';
|
||||
|
||||
# Workaround build failure on -fno-common toolchains:
|
||||
# ld: utils.o:xenstore/utils.h:27:
|
||||
# multiple definition of `xprintf'; xenstored_core.o:xenstore/utils.h:27: first defined here
|
||||
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||
|
||||
buildPhase = ''
|
||||
export CC=gcc
|
||||
export CFLAGS='-Wall -Wstrict-prototypes -Wno-unused-local-typedefs -Wno-sizeof-pointer-memaccess'
|
||||
|
Loading…
Reference in New Issue
Block a user