GNU/Linux Options#
These -m options are defined for GNU/Linux targets:
- -mglibc#
Use the GNU C library. This is the default except on
*-*-linux-*uclibc*,*-*-linux-*musl*and*-*-linux-*android*targets.
- -muclibc#
Use uClibc C library. This is the default on
*-*-linux-*uclibc*targets.
- -mmusl#
Use the musl C library. This is the default on
*-*-linux-*musl*targets.
- -mbionic#
Use Bionic C library. This is the default on
*-*-linux-*android*targets.
- -mandroid#
Compile code compatible with Android platform. This is the default on
*-*-linux-*android*targets.When compiling, this option enables
-mbionic,-fPIC,-fno-exceptionsand-fno-rttiby default. When linking, this option makes the GCC driver pass Android-specific options to the linker. Finally, this option causes the preprocessor macro__ANDROID__to be defined.