about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJean-Paul Calderone <exarkun@twistedmatrix.com>2022-11-16 08:58:25 -0500
committerJean-Paul Calderone <exarkun@twistedmatrix.com>2022-11-21 10:33:06 -0500
commitedf1f46af87eb6d9a19da33efe693fe649630a9a (patch)
tree9afdebb2e8e2f5171fcb2ef6e3fcc8300bd2feda /pkgs
parent19230cff31fd7562562dd25181579fa7087f0f89 (diff)
libxcrypt: Fix the build on Android by allowing warnings
This fixes:

```
lib/util-xbzero.c:61:3: error: extension used [-Werror,-Wlanguage-extension-token]
  OBSERVE_MEM (s, len);
  ^
lib/util-xbzero.c:45:3: note: expanded from macro 'OBSERVE_MEM'
  asm volatile ("" : : "m" (*(const char (*)[len]) s))
  ^
```
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/libxcrypt/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libxcrypt/default.nix b/pkgs/development/libraries/libxcrypt/default.nix
index d4ce1f8bc7351..8fe6a7ee0a99b 100644
--- a/pkgs/development/libraries/libxcrypt/default.nix
+++ b/pkgs/development/libraries/libxcrypt/default.nix
@@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
     "--enable-hashes=all"
     "--enable-obsolete-api=glibc"
     "--disable-failure-tokens"
-  ] ++ lib.optionals stdenv.hostPlatform.isMusl [
+  ] ++ lib.optionals (stdenv.hostPlatform.isMusl || stdenv.hostPlatform.libc == "bionic") [
     "--disable-werror"
   ];