gperftools: remove libunwind when building statically
Co-authored-by: Alyssa Ross <hi@alyssa.is>
This commit is contained in:
parent
90bb960602
commit
90b0c0b742
1 changed files with 2 additions and 2 deletions
|
@ -28,8 +28,8 @@ stdenv.mkDerivation rec {
|
|||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
|
||||
# tcmalloc uses libunwind in a way that works correctly only on non-ARM linux
|
||||
buildInputs = lib.optional (stdenv.isLinux && !stdenv.hostPlatform.isAarch) libunwind;
|
||||
# tcmalloc uses libunwind in a way that works correctly only on non-ARM dynamically linked linux
|
||||
buildInputs = lib.optional (stdenv.isLinux && !(stdenv.hostPlatform.isAarch || stdenv.hostPlatform.isStatic )) libunwind;
|
||||
|
||||
# Disable general dynamic TLS on AArch to support dlopen()'ing the library:
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1483558
|
||||
|
|
Loading…
Reference in a new issue