ext/util/extconf.rb in mac-robot-0.5.1 vs ext/util/extconf.rb in mac-robot-0.5.2
- old
+ new
@@ -3,11 +3,12 @@
end
require "mkmf"
# Name your extension
-extension_name = 'util.h'
+extension_name = 'util'
+header_name = extension_name + '.h'
# Set your target name
dir_config(extension_name)
$LDFLAGS += ' -framework ApplicationServices -framework AppKit'
@@ -16,9 +17,9 @@
MACRUBY_VERSION # Only MacRuby has this constant.
$CFLAGS += ' -fobjc-gc' # Enable MacOSX's GC for MacRuby
rescue
end
-have_header(extension_name)
+have_header(header_name)
# Do the work
create_makefile(extension_name)