gdb: Look for debug info in /run/current-system/sw/lib/debug
The previous default was $out/lib/debug, which wasn't very useful. This ensures that you can do environment.systemPackages = [ pkgs.hello.debug ]; to install debug info.
This commit is contained in:
parent
ec5b66eb4a
commit
e636e0a532
|
@ -103,7 +103,8 @@ in
|
||||||
[ "/bin"
|
[ "/bin"
|
||||||
"/etc/xdg"
|
"/etc/xdg"
|
||||||
"/info"
|
"/info"
|
||||||
"/lib"
|
"/lib" # FIXME: remove
|
||||||
|
#"/lib/debug/.build-id" # enables GDB to find separated debug info
|
||||||
"/man"
|
"/man"
|
||||||
"/sbin"
|
"/sbin"
|
||||||
"/share/applications"
|
"/share/applications"
|
||||||
|
|
|
@ -44,6 +44,7 @@ stdenv.mkDerivation rec {
|
||||||
configureFlags = with stdenv.lib;
|
configureFlags = with stdenv.lib;
|
||||||
'' --with-gmp=${gmp} --with-mpfr=${mpfr} --with-system-readline
|
'' --with-gmp=${gmp} --with-mpfr=${mpfr} --with-system-readline
|
||||||
--with-expat --with-libexpat-prefix=${expat}
|
--with-expat --with-libexpat-prefix=${expat}
|
||||||
|
--with-separate-debug-dir=/run/current-system/sw/lib/debug
|
||||||
''
|
''
|
||||||
+ optionalString (target != null) " --target=${target.config}"
|
+ optionalString (target != null) " --target=${target.config}"
|
||||||
+ optionalString (elem stdenv.system platforms.cygwin) " --without-python";
|
+ optionalString (elem stdenv.system platforms.cygwin) " --without-python";
|
||||||
|
|
Loading…
Reference in a new issue