Merge pull request #74806 from Ericson2314/gdb-correct-lib

gdb: Fix safe path for cross
This commit is contained in:
John Ericson 2019-12-01 17:39:06 -05:00 committed by GitHub
commit ce0fd24752
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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