python3Packages.vmprof: add -fcommon workaround
Workaround build failure on -fno-common toolchains like upstream gcc-10. Otherwise build fails as: ld: src/vmprof_unix.o:src/vmprof_common.h:92: multiple definition of `_PyThreadState_Current'; src/_vmprof.o:src/vmprof_common.h:92: first defined here
This commit is contained in:
parent
ef75dae045
commit
3ea4263a66
|
@ -25,6 +25,13 @@ buildPythonPackage rec {
|
|||
doCheck = false;
|
||||
pythonImportsCheck = [ "vmprof" ];
|
||||
|
||||
# Workaround build failure on -fno-common toolchains:
|
||||
# ld: src/vmprof_unix.o:src/vmprof_common.h:92: multiple definition of
|
||||
# `_PyThreadState_Current'; src/_vmprof.o:src/vmprof_common.h:92: first defined here
|
||||
# TODO: can be removed once next release contains:
|
||||
# https://github.com/vmprof/vmprof-python/pull/203
|
||||
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||
|
||||
meta = with lib; {
|
||||
broken = (stdenv.isLinux && stdenv.isAarch64) || stdenv.isDarwin;
|
||||
description = "A vmprof client";
|
||||
|
|
Loading…
Reference in a new issue