3
0
Fork 0
forked from mirrors/nixpkgs

enableDebugging: use more suitable gcc flags

-ggdb is supposed to provide better symbol information when used with gdb
-Og is the recommended optimization level for debugging purposes
This commit is contained in:
Vladimír Čunát 2015-08-10 09:10:35 +02:00
parent 6cf49480a6
commit 5ad448df3a

View file

@ -224,7 +224,7 @@ rec {
keepDebugInfo = stdenv: stdenv // keepDebugInfo = stdenv: stdenv //
{ mkDerivation = args: stdenv.mkDerivation (args // { { mkDerivation = args: stdenv.mkDerivation (args // {
dontStrip = true; dontStrip = true;
NIX_CFLAGS_COMPILE = toString (args.NIX_CFLAGS_COMPILE or "") + " -g -O0"; NIX_CFLAGS_COMPILE = toString (args.NIX_CFLAGS_COMPILE or "") + " -ggdb -Og";
}); });
}; };