gdb: configure with stdenv.cc.cc.lib safe path (#73574)

gdb: configure with stdenv.cc.cc.lib safe path
This commit is contained in:
Jörg Thalheim 2019-11-27 11:06:50 +00:00 committed by GitHub
commit 3ebebaf9ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,8 @@
, pythonSupport ? stdenv.hostPlatform == stdenv.buildPlatform && !stdenv.hostPlatform.isCygwin, python3 ? null , pythonSupport ? stdenv.hostPlatform == stdenv.buildPlatform && !stdenv.hostPlatform.isCygwin, python3 ? null
, guile ? 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-gmp=${gmp.dev}"
"--with-mpfr=${mpfr.dev}" "--with-mpfr=${mpfr.dev}"
"--with-expat" "--with-libexpat-prefix=${expat.dev}" "--with-expat" "--with-libexpat-prefix=${expat.dev}"
"--with-auto-load-safe-path=${builtins.concatStringsSep ":" safePaths}"
] ++ stdenv.lib.optional (!pythonSupport) "--without-python"; ] ++ stdenv.lib.optional (!pythonSupport) "--without-python";
postInstall = postInstall =