From a355c67d8ef66fd209b64d60bd2fa0a29d3ebe98 Mon Sep 17 00:00:00 2001 From: Cliff Rowley Date: Wed, 20 Nov 2013 02:03:44 +0000 Subject: wkhtmltopdf: link against libc++ on Mavericks Closes #24532. Signed-off-by: Mike McQuaid --- Library/Formula/wkhtmltopdf.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Library/Formula') diff --git a/Library/Formula/wkhtmltopdf.rb b/Library/Formula/wkhtmltopdf.rb index f677137a1..82a056d08 100644 --- a/Library/Formula/wkhtmltopdf.rb +++ b/Library/Formula/wkhtmltopdf.rb @@ -24,7 +24,13 @@ class Wkhtmltopdf < Formula inreplace 'src/image/image.pro', 'x86', Hardware::CPU.arch_64_bit end - system 'qmake', '-spec', 'macx-g++' + if MacOS.version >= :mavericks && ENV.compiler == :clang + spec = 'unsupported/macx-clang-libc++' + else + spec = 'macx-g++' + end + + system 'qmake', '-spec', spec system 'make' ENV['DYLD_LIBRARY_PATH'] = './bin' `bin/wkhtmltopdf --manpage > wkhtmltopdf.1` -- cgit v1.2.3