1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

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 {