root5: fix for glibc

main
Dmitry Kalinkin 2 years ago
parent bb5678ef5f
commit 81f9e28844
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333
  1. 5
      pkgs/applications/science/misc/root/5.nix

@ -85,6 +85,11 @@ stdenv.mkDerivation rec {
patchShebangs build/unix/
ln -s ${lib.getDev stdenv.cc.libc}/include/AvailabilityMacros.h cint/cint/include/
# __malloc_hook is deprecated
substituteInPlace misc/memstat/src/TMemStatHook.cxx \
--replace "defined(R__GNU) && (defined(R__LINUX) || defined(__APPLE__))" \
"defined(R__GNU) && (defined(__APPLE__))"
''
# Fix CINTSYSDIR for "build" version of rootcint
# This is probably a bug that breaks out-of-source builds

Loading…
Cancel
Save