Commit 61e4d1e6 authored by crimsonwoods's avatar crimsonwoods

Integrate common flag '-no-canonical-prefixes'.

parent a2a5c34c
......@@ -133,25 +133,25 @@ Set ANDROID_NDK_HOME environment variable or set :ndk_home parameter
case toolchain
when :gcc
flags += %W(-ffunction-sections -funwind-tables)
flags += %W(-ffunction-sections -funwind-tables -no-canonical-prefixes)
flags += %W(-D__android__ -mandroid --sysroot="#{sysroot}")
case arch
when /arm64/
flags += %W(-fpic -fstack-protector-strong -no-canonical-prefixes)
flags += %W(-fpic -fstack-protector-strong)
when 'armeabi-v7a-hard'
flags += %W(-fpic -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mhard-float -D_NDK_MATH_NO_SOFTFP=1 -mfpu=vfpv3-d16)
flags += %W(-fpic -fstack-protector-strong -march=armv7-a -mhard-float -D_NDK_MATH_NO_SOFTFP=1 -mfpu=vfpv3-d16)
when 'armeabi-v7a'
flags += %W(-fpic -fstack-protector-strong -no-canonical-prefixes -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16)
flags += %W(-fpic -fstack-protector-strong -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16)
when /arm/
flags += %W(-fpic -fstack-protector-strong -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float)
flags += %W(-fpic -fstack-protector-strong -march=armv5te -mtune=xscale -msoft-float)
when /mips64/
flags += %W(-fpic -fno-strict-aliasing -finline-functions -fmessage-length=0 -fno-inline-functions-called-once -fgcse-after-reload -frerun-cse-after-loop -frename-registers -no-canonical-prefixes)
flags += %W(-fpic -fno-strict-aliasing -finline-functions -fmessage-length=0 -fno-inline-functions-called-once -fgcse-after-reload -frerun-cse-after-loop -frename-registers)
when /mips/
flags += %W(-fpic -fno-strict-aliasing -finline-functions -fmessage-length=0 -fno-inline-functions-called-once -fgcse-after-reload -frerun-cse-after-loop -frename-registers)
when /x86_64/
flags += %W(-fstack-protector-strong -no-canonical-prefixes)
flags += %W(-fstack-protector-strong)
when /x86/
flags += %W(-fstack-protector-strong -no-canonical-prefixes)
flags += %W(-fstack-protector-strong)
end
when :clang
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment