Przeglądaj źródła

document cross-compile to Android, fixes #4913

Christian Grothoff 5 lat temu
rodzic
commit
0394bc7213
1 zmienionych plików z 10 dodań i 1 usunięć
  1. 10 1
      doc/libmicrohttpd.texi

+ 10 - 1
doc/libmicrohttpd.texi

@@ -286,9 +286,18 @@ specifies path to libgcrypt installation
 @item ``--with-gnutls=PATH''
 specifies path to libgnutls installation
 
-
 @end table
 
+To cross-compile MHD for Android, install the Android NDK and use:
+@verbatim
+./configure --target=arm-linux-androideabi --host=arm-linux-androideabi --disable-doc --disable-examples
+make
+@end verbatim
+
+Similar build commands should work for cross-compilation to other platforms.
+Note that you may have to first cross-compile GnuTLS to get MHD with TLS support.
+
+
 @section Validity of pointers
 
 MHD will give applications access to its internal data structures