http://sourceforge.jp/users/ornse01/pf/mruby_brightv_hello/scm/blobs/45103246e7f332c6e611ee7ce0340219508d4d37/src/build_config.rb から抜きだし
- # Define cross build settings
- MRuby::CrossBuild.new('pcat') do |conf|
- toolchain :gcc
- # C compiler settings
- conf.cc do |cc|
- cc.command = "#{ENV['GNUi386']}/bin/gcc386"
- cc.flags = "-O2 -fno-strength-reduce -mpreferred-stack-boundary=2 -Wall"
- cc.include_paths = ["#{root}/include", "#{ENV['BD']}/include", "../src/posix_include"]
- cc.defines = %w(DISABLE_STDIO PCAT)
- end
- # Archiver settings
- conf.archiver do |archiver|
- archiver.command = "#{ENV['GNUi386']}/bin/ar"
- archiver.archive_options = 'rvl %{outfile} %{objs}'
- end
- conf.build_mrbtest_lib_only
- @bins = [] # for disable to link mrbc for target.
- end