valgrind: try fixing on darwin

This commit is contained in:
Vladimír Čunát 2020-08-05 19:03:10 +02:00
parent 2a2d5ebc69
commit e5b91d92a0
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -38,10 +38,6 @@ stdenv.mkDerivation rec {
sed -i coregrind/link_tool_exe_darwin.in \
-e 's/^my \$archstr = .*/my $archstr = "x86_64";/g'
echo "substitute hardcoded /usr/include/mach with ${xnu}/include/mach"
substituteInPlace coregrind/Makefile.in \
--replace /usr/include/mach ${xnu}/include/mach
substituteInPlace coregrind/m_debuginfo/readmacho.c \
--replace /usr/bin/dsymutil ${stdenv.cc.bintools.bintools}/bin/dsymutil
@ -54,7 +50,8 @@ stdenv.mkDerivation rec {
postPatch = "";
configureFlags =
stdenv.lib.optional (stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "x86_64-darwin") "--enable-only64bit";
stdenv.lib.optional (stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "x86_64-darwin") "--enable-only64bit"
++ stdenv.lib.optional stdenv.hostPlatform.isDarwin "--with-xcodedir=${xnu}/include";
doCheck = false; # fails