Permalink
Browse files

Hack around the way old versions of mkmf duplicate the feature symbol…

…s on the command line and in extconf.h.
  • Loading branch information...
1 parent 7ff7768 commit 565d19f2c1991fb3240b4d911844e49133751441 rmagick committed Dec 27, 2007
Showing with 4 additions and 1 deletion.
  1. +4 −1 ext/RMagick/extconf.rb
@@ -3,7 +3,7 @@
RMAGICK_VERS = "0.0.0$"
MIN_RUBY_VERS = "1.8.2"
-MIN_RUBY_VERS_NO = MIN_RUBY_VERS.tr(",","").to_i
+MIN_RUBY_VERS_NO = MIN_RUBY_VERS.tr(".","").to_i
MIN_IM_VERS = "6.3.0"
MIN_IM_VERS_NO = MIN_IM_VERS.tr(".","").to_i
@@ -229,6 +229,9 @@ def exit_failure(msg)
$defs.push("-DRMAGICK_VERSION_STRING=\"RMagick #{RMAGICK_VERS}\"")
create_header()
+# Prior to 1.8.5 mkmf duplicated the symbols on the command line and in the
+# extconf.h header. Suppress that behavior by removing the symbol array.
+$defs = []
# Force re-compilation if the generated Makefile changed.
$config_h = "Makefile rmagick.h"

0 comments on commit 565d19f

Please sign in to comment.