diff options
| author | Josh Hagins | 2013-12-01 23:25:16 -0500 |
|---|---|---|
| committer | Misty De Meo | 2013-12-01 21:10:20 -0800 |
| commit | 3766714a90eec83e0878c77485fd7d3ebef9b005 (patch) | |
| tree | 3ad5ebfe50cb00b20f96b1057d34d0a37e0ad388 /Library | |
| parent | 1947b0552e111a88b3abddc8624ff2f8a51c18bb (diff) | |
| download | homebrew-3766714a90eec83e0878c77485fd7d3ebef9b005.tar.bz2 | |
DiffPDF: link against libc++ for >= Mavericks
Fixes #24854
Closes #24855.
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/diffpdf.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Formula/diffpdf.rb b/Library/Formula/diffpdf.rb index 235203d81..f4c72c8fc 100644 --- a/Library/Formula/diffpdf.rb +++ b/Library/Formula/diffpdf.rb @@ -19,7 +19,13 @@ class Diffpdf < Formula # compilation does not fail. system 'lrelease', 'diffpdf.pro' # Generate makefile and disable .app creation - system 'qmake -spec macx-g++ CONFIG-=app_bundle' + if MacOS.version >= :mavericks && ENV.compiler == :clang + spec = 'unsupported/macx-clang-libc++' + else + spec = 'macx-g++' + end + + system 'qmake', '-spec', spec, 'CONFIG-=app_bundle' system 'make' bin.install 'diffpdf' |
