ext/util/extconf.rb in mac-robot-0.2.2 vs ext/util/extconf.rb in mac-robot-0.2.3
- old
+ new
@@ -10,9 +10,15 @@
# Set your target name
dir_config(extension_name)
$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
create_makefile(extension_name)