Permalink
Browse files

fix build error on MacRuby

  • Loading branch information...
1 parent 7050daa commit 6831849fd4ecf3869f85c1762f818e2afe58cbe7 @Watson1978 committed Jun 17, 2012
Showing with 12 additions and 0 deletions.
  1. +6 −0 ext/event_dispatcher/extconf.rb
  2. +6 −0 ext/util/extconf.rb
@@ -12,6 +12,12 @@
$LDFLAGS += ' -framework ApplicationServices'
+begin
+ MACRUBY_VERSION # Only MacRuby has this constant.
+ $CFLAGS += ' -fobjc-gc' # Enable MacOSX's GC for MacRuby
+rescue
+end
+
have_header(extension_name)
# Do the work
View
@@ -12,6 +12,12 @@
$LDFLAGS += ' -framework ApplicationServices -framework AppKit'
+begin
+ MACRUBY_VERSION # Only MacRuby has this constant.
+ $CFLAGS += ' -fobjc-gc' # Enable MacOSX's GC for MacRuby
+rescue
+end
+
have_header(extension_name)
# Do the work

0 comments on commit 6831849

Please sign in to comment.