Skip to content

Commit

Permalink
bug fix: add new option '-mandroid' into CFLAGS and same options are …
Browse files Browse the repository at this point in the history
…applied into LDFLAGS.
  • Loading branch information
crimsonwoods committed Mar 7, 2013
1 parent 51b8c8d commit 80edeaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tasks/toolchains/androideabi.rake
Expand Up @@ -16,8 +16,9 @@ MRuby::Toolchain.new(:androideabi) do |conf|

[conf.cc, conf.cxx, conf.objc, conf.asm].each do |cc|
cc.command = ENV['CC'] || ANDROID_STANDALONE_TOOLCHAIN + 'gcc'
cc.flags = [ENV['CFLAGS'] || ['--sysroot=' + SYSROOT]]
cc.flags = [ENV['CFLAGS'] || ['-mandroid --sysroot=' + SYSROOT]]
end
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'
end

0 comments on commit 80edeaa

Please sign in to comment.