--- subtle-0.11.3224-xi/Rakefile +++ subtle-0.11.3224-xi/Rakefile @@ -63,9 +63,9 @@ "hdrdir" => "", "archdir" => "", "revision" => "3224", #< Latest stable - "cflags" => "-Wall -Werror -Wpointer-arith -Wstrict-prototypes -Wunused -Wshadow -std=gnu99", + "cflags" => "#{ENV['CFLAGS']} -Wall -Wpointer-arith -Wstrict-prototypes -Wunused -Wshadow -std=gnu99", "cpppath" => "-I. -I$(builddir) -Isrc -Isrc/shared -Isrc/subtle -idirafter$(hdrdir) -idirafter$(archdir)", - "ldflags" => "-L$(libdir) $(rpath) $(LIBS) -l$(RUBY_SO_NAME)", + "ldflags" => "#{ENV['LDFLAGS']} -L$(libdir) $(rpath) $(LIBS) -l$(RUBY_SO_NAME)", "extflags" => "$(LDFLAGS) $(rpath) $(LIBS) -l$(RUBY_SO_NAME)", "rpath" => "-L$(libdir) -Wl,-rpath=$(libdir)", "checksums" => [] @@ -276,7 +276,7 @@ # Debug if "yes" == @options["debug"] - @options["cflags"] << " -g -DDEBUG" + @options["cflags"] << " -DDEBUG" else @options["cflags"] << " -DNDEBUG" end