android: add --build-id to ldflags

the gcc in android does not have this on by default. Doing this will
fix some of the errors in cross-trunk:

https://hydra.nixos.org/build/76354538/nixlog/11

This is related to how separate debug info is handled in Nixpkgs.
This commit is contained in:
Matthew Bauer 2018-06-24 16:33:20 -04:00
parent 73e2f60837
commit 7652b2ef16

View File

@ -58,6 +58,9 @@ rec {
binutils = wrapBintoolsWith {
bintools = binaries;
libc = targetAndroidndkPkgs.libraries;
extraBuildCommands = ''
echo "--build-id" >> $out/nix-support/libc-ldflags
'';
};
gcc = wrapCCWith {