aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMike McQuaid2012-10-20 19:15:44 +0100
committerMike McQuaid2012-10-20 19:16:26 +0100
commit897f01352b5792912f0c7a86a17e740bde3a3777 (patch)
tree244c02a2e5de3705df6b9e2a46ccd1a0205dc74f /Library/Formula
parentd601647f0e00c7fb72d9de624d8dcf86ba414961 (diff)
downloadhomebrew-897f01352b5792912f0c7a86a17e740bde3a3777.tar.bz2
qt: Fix X11 libpng inclusion.
Fixes #15568.
Diffstat (limited to 'Library/Formula')
-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