Skip to content

Instantly share code, notes, and snippets.

@vaibhavsagar
Last active January 4, 2018 09:58
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 vaibhavsagar/146355aa78e3234b2d929d401a718862 to your computer and use it in GitHub Desktop.
Save vaibhavsagar/146355aa78e3234b2d929d401a718862 to your computer and use it in GitHub Desktop.
with import <nixpkgs> {};
wrapCC (pkgs.runCommand "gcc" {
src = stdenv.cc.cc;
isGNU = true;
} ''
mkdir -p $out
cp -r --no-preserve=mode,ownership $src/* $out
cd $out/lib/gcc/x86*/6*
cp crtbeginS.o crtbeginT.o
'')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment