aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/qt.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Formula/qt.rb b/Library/Formula/qt.rb
index d2c6cf819..a252f1f33 100644
--- a/Library/Formula/qt.rb
+++ b/Library/Formula/qt.rb
@@ -44,6 +44,8 @@ class Qt < Formula
"-confirm-license", "-opensource",
"-cocoa", "-fast" ]
+ args << "-L#{MacOS.x11_prefix}/lib" << "-I#{MacOS.x11_prefix}/include" if MacOS::X11.installed?
+
args << "-platform" << "unsupported/macx-clang" if ENV.compiler == :clang
# See: https://github.com/mxcl/homebrew/issues/issue/744