mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
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"
|
||||
"/etc/xdg"
|
||||
"/info"
|
||||
"/lib"
|
||||
"/lib" # FIXME: remove
|
||||
#"/lib/debug/.build-id" # enables GDB to find separated debug info
|
||||
"/man"
|
||||
"/sbin"
|
||||
"/share/applications"
|
||||
|
@ -44,6 +44,7 @@ stdenv.mkDerivation rec {
|
||||
configureFlags = with stdenv.lib;
|
||||
'' --with-gmp=${gmp} --with-mpfr=${mpfr} --with-system-readline
|
||||
--with-expat --with-libexpat-prefix=${expat}
|
||||
--with-separate-debug-dir=/run/current-system/sw/lib/debug
|
||||
''
|
||||
+ optionalString (target != null) " --target=${target.config}"
|
||||
+ optionalString (elem stdenv.system platforms.cygwin) " --without-python";
|
||||
|
Loading…
Reference in New Issue
Block a user