mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
gdb: Fix safe path for cross
This commit is contained in:
parent
2c50bd3984
commit
7ee98d8bb3
@ -1,4 +1,4 @@
|
||||
{ stdenv
|
||||
{ stdenv, targetPackages
|
||||
|
||||
# Build time
|
||||
, fetchurl, pkgconfig, perl, texinfo, setupDebugInfoDirs, buildPackages
|
||||
@ -8,9 +8,12 @@
|
||||
|
||||
, pythonSupport ? stdenv.hostPlatform == stdenv.buildPlatform && !stdenv.hostPlatform.isCygwin, python3 ? null
|
||||
, guile ? null
|
||||
# $debugdir:$datadir/auto-load are whitelisted by default by GDB
|
||||
, safePaths ? [ "$debugdir" "$datadir/auto-load" stdenv.cc.cc.lib ]
|
||||
|
||||
, safePaths ? [
|
||||
# $debugdir:$datadir/auto-load are whitelisted by default by GDB
|
||||
"$debugdir" "$datadir/auto-load"
|
||||
# targetPackages so we get the right libc when cross-compiling and using buildPackages.gdb
|
||||
targetPackages.stdenv.cc.cc.lib
|
||||
]
|
||||
}:
|
||||
|
||||
let
|
||||
|
Loading…
Reference in New Issue
Block a user