mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-28 20:55:36 +08:00
[RM-669] fix a regression which RubyMotion static library causes link error in Xcode project
http://hipbyte.myjetbrains.com/youtrack/issue/RM-669
This commit is contained in:
@@ -258,8 +258,9 @@ EOS
|
||||
# Create a static archive with all object files + the runtime.
|
||||
lib = File.join(config.versionized_build_dir(platform), config.name + '.a')
|
||||
App.info 'Create', lib
|
||||
kernel = File.join(datadir, platform, "kernel.o")
|
||||
objs_list = objs.map { |path, _| path }.unshift(init_o, *config.frameworks_stubs_objects(platform)).map { |x| "\"#{x}\"" }.join(' ')
|
||||
sh "/usr/bin/libtool -static \"#{librubymotion}\" #{objs_list} -o \"#{lib}\""
|
||||
sh "/usr/bin/libtool -static \"#{librubymotion}\" \"#{kernel}\" #{objs_list} -o \"#{lib}\""
|
||||
return lib
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user