changeset_r3244.diff 452 B

1234567891011121314151617
  1. diff -r 43d1d0478c46 -r 31e0a9716e58 Rakefile
  2. --- a/Rakefile
  3. +++ b/Rakefile
  4. @@ -397,6 +397,12 @@
  5. ret = false
  6. cflags, ldflags, libs = pkg_config("xft")
  7. +
  8. + # Fix a bug in ruby 2.2.0 (https://bugs.ruby-lang.org/issues/10651)
  9. + if cflags.empty?
  10. + cflags << `#{$PKGCONFIG} --cflags xft`.chomp
  11. + end
  12. +
  13. unless libs.nil?
  14. # Update flags
  15. @options["cpppath"] << " %s" % [ cflags ]