Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

Fix OpenSSL build with Android NDK clang on x86 (#13684)

Vasyl Gello20ce62665463
diff --git a/flutter/ndk_x86.sh b/flutter/ndk_x86.sh
index 617c25f65..57e121274 100755
--- a/flutter/ndk_x86.sh
+++ b/flutter/ndk_x86.sh
@@ -1,2 +1,10 @@
#!/usr/bin/env bash
+
+#
+# Fix OpenSSL build with Android NDK clang on 32-bit architectures
+#
+
+export CFLAGS="-DBROKEN_CLANG_ATOMICS"
+export CXXFLAGS="-DBROKEN_CLANG_ATOMICS"
+
cargo ndk --platform 21 --target i686-linux-android build --release --features flutter