Android NDK

Main

Default GCC compiler options

  • armeabi: -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -g -march=armv5te -mtune=xscale -msoft-float -mthumb -DANDROID -Wall -Wextra -Werror -Wa,–noexecstack -Wformat -Werror=format-security
  • armeabi-v7a: -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -mthumb -DANDROID -Wall -Wextra -Werror -Wa,–noexecstack -Wformat -Werror=format-security
  • arm64-v8a: -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -DANDROID -Wall -Wextra -Werror -Wa,–noexecstack -Wformat -Werror=format-security
  • x86: -ffunction-sections -funwind-tables -no-canonical-prefixes -g -fstack-protector-strong -Wall -Wextra -Werror -Wa,–noexecstack -Wformat -Werror=format-security -mstackrealign -mstack-protector-guard=global
  • x86_64: -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -DANDROID -Wall -Wextra -Werror -Wa,–noexecstack -Wformat -Werror=format-security
  • mips: -mips32 -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -fmessage-length=0 -no-canonical-prefixes -DANDROID -Wall -Wextra -Werror -Wa,–noexecstack -Wformat -Werror=format-security
  • mips64: -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -fmessage-length=0 -no-canonical-prefixes -DANDROID -Wall -Wextra -Werror -Wa,–noexecstack -Wformat -Werror=format-security

2 responses on “Android NDK

Leave a Reply

Your email address will not be published. Required fields are marked *