Permalink
Browse files

fixed CONFIG["optflags"]. before it is always "-O3". after specified …

…by optz_level.
  • Loading branch information...
1 parent 58351a9 commit 7b2cc48db7a727da80e7de79c3df5e2cd3d882a0 @takaokouji takaokouji committed Jun 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 rakelib/builder/templates.rb
View
2 rakelib/builder/templates.rb
@@ -165,7 +165,7 @@ module RbConfig
CONFIG["RDOCTARGET"] = "install-doc"
CONFIG["cppflags"] = ""
CONFIG["cflags"] = "$(optflags) $(debugflags) $(warnflags)"
- CONFIG["optflags"] = "-O3"
+ CONFIG["optflags"] = "-O#{OPTZ_LEVEL}"
CONFIG["debugflags"] = "-g"
CONFIG["warnflags"] = "-Wall"
CONFIG["LIBRUBY_LDSHARED"] = "/usr/bin/gcc -dynamiclib -undefined suppress -flat_namespace $(ARCH_FLAG)"

0 comments on commit 7b2cc48

Please sign in to comment.