root5: fix for glibc

This commit is contained in:
Dmitry Kalinkin 2022-04-16 17:20:16 -04:00
parent bb5678ef5f
commit 81f9e28844
No known key found for this signature in database
GPG key ID: 5157B3EC8B2CA333

View file

@ -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