From 3766714a90eec83e0878c77485fd7d3ebef9b005 Mon Sep 17 00:00:00 2001 From: Josh Hagins Date: Sun, 1 Dec 2013 23:25:16 -0500 Subject: DiffPDF: link against libc++ for >= Mavericks Fixes #24854 Closes #24855. Signed-off-by: Misty De Meo --- Library/Formula/diffpdf.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Library/Formula/diffpdf.rb') 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' -- cgit v1.2.3