mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
glibc 2.12: Add an option to keep debugging symbols.
svn path=/nixpkgs/trunk/; revision=30284
This commit is contained in:
parent
18fcb0f5f8
commit
84888ac3f1
|
@ -4,6 +4,7 @@
|
|||
, installLocales ? true
|
||||
, profilingLibraries ? false
|
||||
, gccCross ? null
|
||||
, debugSymbols ? false
|
||||
}:
|
||||
|
||||
assert stdenv.gcc.gcc != null;
|
||||
|
@ -13,7 +14,7 @@ let
|
|||
cross = if gccCross != null then gccCross.target else null;
|
||||
in
|
||||
build cross ({
|
||||
name = "glibc";
|
||||
name = "glibc${if debugSymbols then "-debug" else ""}";
|
||||
|
||||
inherit fetchurl stdenv kernelHeaders installLocales profilingLibraries
|
||||
gccCross;
|
||||
|
@ -39,6 +40,18 @@ in
|
|||
|
||||
//
|
||||
|
||||
(if debugSymbols
|
||||
then {
|
||||
# Build with debugging symbols, but leave optimizations on and don't
|
||||
# attempt to keep the build tree.
|
||||
dontStrip = true;
|
||||
dontCrossStrip = true;
|
||||
NIX_STRIP_DEBUG = 0;
|
||||
}
|
||||
else {})
|
||||
|
||||
//
|
||||
|
||||
(if hurdHeaders != null
|
||||
then rec {
|
||||
inherit machHeaders hurdHeaders libpthreadHeaders mig fetchgit;
|
||||
|
|
Loading…
Reference in a new issue