diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2018-06-24 16:33:20 -0400 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2018-06-25 17:10:11 -0400 |
commit | 7652b2ef16375ed1e38056c69da4125b0c25c3f2 (patch) | |
tree | ddba57324cdbd57331524580c47ff37e663c6449 /pkgs | |
parent | 73e2f608377a81b7ad3ff94c3e5586bded36ac71 (diff) | |
download | nixlib-7652b2ef16375ed1e38056c69da4125b0c25c3f2.tar nixlib-7652b2ef16375ed1e38056c69da4125b0c25c3f2.tar.gz nixlib-7652b2ef16375ed1e38056c69da4125b0c25c3f2.tar.bz2 nixlib-7652b2ef16375ed1e38056c69da4125b0c25c3f2.tar.lz nixlib-7652b2ef16375ed1e38056c69da4125b0c25c3f2.tar.xz nixlib-7652b2ef16375ed1e38056c69da4125b0c25c3f2.tar.zst nixlib-7652b2ef16375ed1e38056c69da4125b0c25c3f2.zip |
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.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/mobile/androidenv/androidndk-pkgs.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/mobile/androidenv/androidndk-pkgs.nix b/pkgs/development/mobile/androidenv/androidndk-pkgs.nix index 5c42f7bc3289..011b8eb00994 100644 --- a/pkgs/development/mobile/androidenv/androidndk-pkgs.nix +++ b/pkgs/development/mobile/androidenv/androidndk-pkgs.nix @@ -58,6 +58,9 @@ rec { binutils = wrapBintoolsWith { bintools = binaries; libc = targetAndroidndkPkgs.libraries; + extraBuildCommands = '' + echo "--build-id" >> $out/nix-support/libc-ldflags + ''; }; gcc = wrapCCWith { |