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