diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2019-11-27 11:06:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-27 11:06:50 +0000 |
commit | 3ebebaf9ad0b7bcb00efbc7192ef47ab11ea622b (patch) | |
tree | 71357bffdfa36c760a5e76038a443ce6d06f5e2b /pkgs/development/tools/misc | |
parent | 90f08689c3aca228c3c5370e2345a3c723e7c740 (diff) | |
parent | 2c50bd398463bc2e67824dbf094b157b618e8623 (diff) |
gdb: configure with stdenv.cc.cc.lib safe path (#73574)
gdb: configure with stdenv.cc.cc.lib safe path
Diffstat (limited to 'pkgs/development/tools/misc')
-rw-r--r-- | pkgs/development/tools/misc/gdb/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/gdb/default.nix b/pkgs/development/tools/misc/gdb/default.nix index e990cb683e7da..335699ee5600e 100644 --- a/pkgs/development/tools/misc/gdb/default.nix +++ b/pkgs/development/tools/misc/gdb/default.nix @@ -8,6 +8,8 @@ , 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 ] }: @@ -70,6 +72,7 @@ stdenv.mkDerivation rec { "--with-gmp=${gmp.dev}" "--with-mpfr=${mpfr.dev}" "--with-expat" "--with-libexpat-prefix=${expat.dev}" + "--with-auto-load-safe-path=${builtins.concatStringsSep ":" safePaths}" ] ++ stdenv.lib.optional (!pythonSupport) "--without-python"; postInstall = |