wkhtmltopdf: link against libc++ on Mavericks

Closes #24532.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Cliff Rowley authored and Mike McQuaid committed 2013-11-20 15:33:21 +00:00
1 parent 5b3410b6d1
commit a355c67d8e
1 file changed
+7 -1
+7 -1
View File
@@ -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`