Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@2608 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information
lrz committed Sep 22, 2009
1 parent 4e46c6f commit 7937d64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/rubyc
Expand Up @@ -135,7 +135,8 @@ EOS

main = gen_tmpfile('main', 'c')
File.open(main, 'w') { |io| io.write(main_txt) }
execute("#{@gcxx} #{main} -dynamic -bundle -undefined suppress -flat_namespace -arch x86_64 -framework MacRuby #{obj} -o #{output}")
link = @internal ? "-L. -lmacruby" : "-framework MacRuby"
execute("#{@gcxx} #{main} -dynamic -bundle -undefined suppress -flat_namespace -arch x86_64 #{link} #{obj} -o #{output}")
end

def compile_executable(objs, output)
Expand Down
2 changes: 1 addition & 1 deletion rakelib/builder.rake
Expand Up @@ -348,7 +348,7 @@ end

AOT_STDLIB = ['rbconfig.rb', 'lib/irb.rb', 'lib/irb/**/*.rb', 'lib/fileutils.rb']
desc "AOT compile parts of the stdlib"
task :aot_compile_stdlib => [:miniruby] do
task :aot_compile_stdlib => [:miniruby, 'macruby:dylib'] do
AOT_STDLIB.each do |pat|
Dir.glob(pat).each do |path|
out = File.join(File.dirname(path), File.basename(path, '.rb') + '.rbo')
Expand Down

0 comments on commit 7937d64

Please sign in to comment.