diff options
| author | MrTatsch | 2013-11-22 14:31:47 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2013-11-22 11:43:26 -0800 |
| commit | e4df2f545a037c250f723981d65d59b08a37af44 (patch) | |
| tree | 5af57b6f4d8ee0bc9ab0d436fed46fd9ba0bcd43 /Library/Formula | |
| parent | e2f3d64e0293756e641f162da3e4430a59a1ea48 (diff) | |
| download | homebrew-e4df2f545a037c250f723981d65d59b08a37af44.tar.bz2 | |
qwt: enable build with libc++ on Mavericks
Closes #24587.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/qwt.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Library/Formula/qwt.rb b/Library/Formula/qwt.rb index 8f1eab79c..e839f755c 100644 --- a/Library/Formula/qwt.rb +++ b/Library/Formula/qwt.rb @@ -13,7 +13,14 @@ class Qwt < Formula s.gsub! /^\s*QWT_INSTALL_PREFIX\s*=(.*)$/, "QWT_INSTALL_PREFIX=#{prefix}" end - system "qmake -spec macx-g++ -config release" + args = ['-config', 'release', '-spec'] + # On Mavericks we want to target libc++, this requires a unsupported/macx-clang-libc++ flag + if ENV.compiler == :clang and MacOS.version >= :mavericks + args << "unsupported/macx-clang-libc++" + else + args << "macx-g++" + end + system 'qmake', *args system "make" system "make install" end |
