Commit 80edeaa8 authored by crimsonwoods's avatar crimsonwoods

bug fix: add new option '-mandroid' into CFLAGS and same options are applied into LDFLAGS.

parent 51b8c8d5
...@@ -16,8 +16,9 @@ MRuby::Toolchain.new(:androideabi) do |conf| ...@@ -16,8 +16,9 @@ MRuby::Toolchain.new(:androideabi) do |conf|
[conf.cc, conf.cxx, conf.objc, conf.asm].each do |cc| [conf.cc, conf.cxx, conf.objc, conf.asm].each do |cc|
cc.command = ENV['CC'] || ANDROID_STANDALONE_TOOLCHAIN + 'gcc' cc.command = ENV['CC'] || ANDROID_STANDALONE_TOOLCHAIN + 'gcc'
cc.flags = [ENV['CFLAGS'] || ['--sysroot=' + SYSROOT]] cc.flags = [ENV['CFLAGS'] || ['-mandroid --sysroot=' + SYSROOT]]
end end
conf.linker.command = ENV['LD'] || ANDROID_STANDALONE_TOOLCHAIN + 'gcc' conf.linker.command = ENV['LD'] || ANDROID_STANDALONE_TOOLCHAIN + 'gcc'
conf.linker.flags = [ENV['LDFLAGS'] || ['-mandroid --sysroot=' + SYSROOT]]
conf.archiver.command = ENV['AR'] || ANDROID_STANDALONE_TOOLCHAIN + 'ar' conf.archiver.command = ENV['AR'] || ANDROID_STANDALONE_TOOLCHAIN + 'ar'
end 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