mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
gdb: patch to use mach-o.h instead of bfd/mach-o.h
For unclear reasons, this doesn’t seem to work anymore. bfd/mach-o.h is not accessible but mach-o.h is. https://hydra.nixos.org/build/94542582
This commit is contained in:
parent
144f1c2a7d
commit
80b51d983a
@ -29,6 +29,11 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0bnpzz0rl672xg5547q5qck2sxi6cnyixmk8bbb4gifw17ipwbw0";
|
||||
};
|
||||
|
||||
postPatch = if stdenv.isDarwin then ''
|
||||
substituteInPlace gdb/darwin-nat.c \
|
||||
--replace '#include "bfd/mach-o.h"' '#include "mach-o.h"'
|
||||
'' else null;
|
||||
|
||||
patches = [
|
||||
./debug-info-from-env.patch
|
||||
] ++ stdenv.lib.optionals stdenv.isDarwin [
|
||||
|
Loading…
Reference in New Issue
Block a user