Skip to content

Instantly share code, notes, and snippets.

@fzakaria
Created January 2, 2022 01:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fzakaria/51918bf31e23a448fa8ba4f0af35a37b to your computer and use it in GitHub Desktop.
Save fzakaria/51918bf31e23a448fa8ba4f0af35a37b to your computer and use it in GitHub Desktop.
Build a version of glibc with debug symbols in Nixpkgs
with import <nixpkgs> { };
enableDebugging (glibc.overrideAttrs (o: {
preConfigure = o.preConfigure + ''
export CFLAGS="-Wno-error=maybe-uninitialized $CFLAGS"
'';
}))
@fzakaria
Copy link
Author

fzakaria commented Jan 2, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment