gdb: configure with stdenv.cc.cc.lib safe path (#73574)
gdb: configure with stdenv.cc.cc.lib safe path
This commit is contained in:
commit
3ebebaf9ad
|
@ -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 =
|
||||||
|
|
Loading…
Reference in New Issue