mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-27 00:01:05 +08:00
fix a bug in `rake device' where it could not build app which has target to less than iOS 7.0
http://hipbyte.myjetbrains.com/youtrack/issue/RM-182 add `-stdlib=libstdc++' for linker
This commit is contained in:
@@ -319,7 +319,13 @@ EOS
|
||||
(vendor_project.opts[:force_load] ? '-force_load ' : '-ObjC ') + "\"#{x}\""
|
||||
}
|
||||
end.join(' ')
|
||||
sh "#{cxx} -o \"#{main_exec}\" #{objs_list} #{config.ldflags(platform)} -L#{File.join(datadir, platform)} -lmacruby-static -lobjc -licucore #{framework_search_paths} #{frameworks} #{weak_frameworks} #{config.libs.join(' ')} #{vendor_libs}"
|
||||
linker_option = begin
|
||||
m = config.deployment_target.match(/(\d+)/)
|
||||
if m[0].to_i < 7
|
||||
"-stdlib=libstdc++"
|
||||
end
|
||||
end || ""
|
||||
sh "#{cxx} -o \"#{main_exec}\" #{objs_list} #{config.ldflags(platform)} -L#{File.join(datadir, platform)} -lmacruby-static -lobjc -licucore #{linker_option} #{framework_search_paths} #{frameworks} #{weak_frameworks} #{config.libs.join(' ')} #{vendor_libs}"
|
||||
main_exec_created = true
|
||||
|
||||
# Change the install name of embedded frameworks.
|
||||
|
||||
Reference in New Issue
Block a user